:root {
  --red: #e30613;
  --navy: #0d1b3e;
  --dark: #1a1a2e;
  --gray: #4a5568;
  --light: #f7f8fa;
  --white: #ffffff;
  --border: #e2e8f0;
  --bg: #ffffff;
  --text: #1a1a2e;
  --text-muted: #4a5568;
  --header-bg: #ffffff;
  --card-bg: #f7f8fa;
  --footer-bg: #0d1b3e;
  --footer-text: rgba(255,255,255,0.8);
}

[data-theme="dark"] {
  --red: #ff4d57;
  --navy: #e0e7ff;
  --dark: #f0f0f5;
  --gray: #a0aec0;
  --light: #1a1a2e;
  --white: #12121f;
  --border: #2d3748;
  --bg: #0f0f1a;
  --text: #e2e8f0;
  --text-muted: #a0aec0;
  --header-bg: #12121f;
  --card-bg: #1a1a2e;
  --footer-bg: #0a0a14;
  --footer-text: rgba(255,255,255,0.75);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
  transition: background 0.2s, color 0.2s;
}

a {
  color: var(--red);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.2s;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.logo img {
  height: 108px;
  width: auto;
  display: block;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  color: var(--navy);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
}

nav a:hover,
nav a.active {
  color: var(--red);
  text-decoration: none;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: background 0.15s, border-color 0.15s;
}

.theme-toggle:hover {
  background: var(--light);
}

.ppc-logo img {
  height: 108px;
  width: auto;
  display: block;
}

/* Hero */
.hero {
  padding: 4rem 0 3rem;
  background: linear-gradient(180deg, var(--bg) 0%, var(--light) 100%);
}

.hero-inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 2.5rem;
}

.hero-text {
  flex: 1;
  text-align: left;
}

.hero-text h1 {
  font-size: 2.2rem;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-text p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.hero-logo img {
  height: 100%;
  width: auto;
  max-height: 220px;
  display: block;
  object-fit: contain;
}

.btn {
  display: inline-block;
  background: var(--red);
  color: white;
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.15s;
}

.btn:hover {
  background: #c00510;
  text-decoration: none;
  color: white;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: white;
}

/* Sections */
section {
  padding: 3.5rem 0;
}

section h2 {
  font-size: 1.6rem;
  color: var(--navy);
  margin-bottom: 1.25rem;
  font-weight: 700;
}

section p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
}

.card h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.95rem;
  margin: 0;
}

.list-check {
  list-style: none;
}

.list-check li {
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-muted);
}

.list-check li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: bold;
}

.price-box {
  background: var(--navy);
  color: white;
  padding: 1.75rem;
  border-radius: 6px;
  text-align: center;
}

[data-theme="dark"] .price-box {
  background: #1e3a5f;
}

.price-box .amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
}

.price-box .unit {
  font-size: 1rem;
  opacity: 0.85;
}

.price-box p {
  color: rgba(255,255,255,0.85);
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

/* Referenzen */
.ref-placeholder {
  background: var(--card-bg);
  border: 2px dashed var(--border);
  border-radius: 6px;
  padding: 2.5rem;
  text-align: center;
  color: var(--text-muted);
}

.ref-placeholder h3 {
  color: var(--navy);
  margin-bottom: 0.5rem;
}

/* Impressum */
.impressum-block {
  margin-bottom: 2rem;
}

.impressum-block h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.impressum-block p,
.impressum-block address {
  font-style: normal;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Footer */
footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 2.5rem 0 1.5rem;
  margin-top: 2rem;
}

footer a {
  color: white;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand img {
  height: 36px;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.85rem;
  max-width: 280px;
  margin-bottom: 0.75rem;
}

.footer-contact {
  font-size: 0.85rem;
  line-height: 1.5;
}

.footer-contact a {
  color: white;
}

.footer-links {
  display: flex;
  gap: 2rem;
  font-size: 0.9rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.8rem;
  text-align: center;
  opacity: 0.7;
}

/* Hosting Calculator */
.calc-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin: 1.5rem 0 1.25rem;
}

.calc-toolbar label {
  font-weight: 500;
  color: var(--navy);
}

.calc-toolbar select {
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  min-width: 16rem;
  max-width: 100%;
}

.max-warning {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

[data-theme="dark"] .max-warning {
  background: #3f1515;
  color: #fca5a5;
  border-color: #7f1d1d;
}

.calc-table-wrap {
  overflow-x: auto;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.calc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.1rem;
}

.calc-table th,
.calc-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.calc-table th {
  background: var(--navy);
  color: #fff;
  font-weight: 600;
}

[data-theme="dark"] .calc-table th {
  background: #1e3a5f;
}

.calc-table tbody tr.row-even {
  background: var(--bg);
}

.calc-table tbody tr.row-odd {
  background: var(--card-bg);
}

.calc-table tbody tr:hover {
  background: rgba(227, 6, 19, 0.06);
}

.calc-table .price {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.calc-table .line-sum {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  padding-left: 2.5rem;
  font-weight: 500;
}

.calc-table .qty-cell {
  white-space: nowrap;
}

.calc-table .qty-input {
  width: 5.5rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  color: var(--text);
  text-align: right;
  font-size: 1.05rem;
}

.calc-table .qty-input.over-max {
  border-color: #dc2626;
  background: #fef2f2;
  color: #b91c1c;
  font-weight: 600;
}

[data-theme="dark"] .calc-table .qty-input.over-max {
  background: #3f1515;
  color: #fca5a5;
  border-color: #ef4444;
}

.calc-table .max-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.calc-table .total-row td {
  border-bottom: none;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
  font-size: 1.2rem;
  color: var(--navy);
  background: var(--card-bg);
}

.calc-table .total-row td:last-child {
  text-align: right;
  padding-left: 2.5rem;
}

.calc-note {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  nav ul {
    gap: 1.25rem;
  }
  .header-controls {
    margin-left: 0;
  }
  .hero-inner {
    flex-direction: column;
    text-align: center;
  }
  .hero-text {
    text-align: center;
  }
  .hero-text h1 {
    font-size: 1.7rem;
  }
  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-logo img {
    height: 100px;
  }
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    flex-direction: column;
  }
  .logo img {
    height: 72px;
  }
  .ppc-logo img {
    height: 72px;
  }
}
