diff --git a/css/style.css b/css/style.css new file mode 100644 index 0000000..ce84fe4 --- /dev/null +++ b/css/style.css @@ -0,0 +1,13 @@ +:root { color-scheme: light dark; } +body { font-family: system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,"Helvetica Neue",Arial,"Noto Sans",sans-serif; margin: 2rem; line-height: 1.5; } +h1 { font-size: 1.8rem; margin-bottom: 1rem; } +a { color: #0b5ed7; text-decoration: none; } +a:hover { text-decoration: underline; } +nav p { margin-bottom: 1.25rem; } +table.calc { border-collapse: collapse; margin-top: 1rem; } +.calc th { background: #f0f0f0; text-align: left; } +.calc td, .calc th { border: 1px solid #ccc; padding: 0.5rem 0.75rem; } +@media (prefers-color-scheme: dark) { + .calc th { background: #222; } + .calc td, .calc th { border-color: #444; } +} diff --git a/index.php b/index.php new file mode 100644 index 0000000..e2bf328 --- /dev/null +++ b/index.php @@ -0,0 +1,24 @@ + + + +
+ + +Füllung 1: = $liter1 ?> L
+Füllung 2: = $liter2 ?> L
+Gesamtmenge: = $gesamtLiter ?> L
+ +Kosten Füllung 1: = $fmtK1 ?> €
+Kosten Füllung 2: = $fmtK2 ?> €
+Gesamtkosten: = $fmtKG ?> €
+ +| Bezeichnung | Wert |
|---|---|
| Füllung 1 (L) | = $liter1 ?> |
| Füllung 2 (L) | = $liter2 ?> |
| Gesamt (L) | = $gesamtLiter ?> |
| Kosten Füllung 1 (€) | = $fmtK1 ?> |
| Kosten Füllung 2 (€) | = $fmtK2 ?> |
| Gesamtkosten (€) | = $fmtKG ?> |