/* =========================================
   Dr. Brenner – Zahnärztin Ternitz
   Modernes, mobil-first Stylesheet
   ========================================= */

:root {
  --primary: #0d6e6e;
  --primary-dark: #0a5454;
  --primary-light: #e6f2f2;
  --accent: #f5b942;
  --text: #1a2828;
  --text-soft: #5a6b6b;
  --bg: #ffffff;
  --bg-alt: #f7faf9;
  --border: #e1e8e8;
  --shadow-sm: 0 2px 8px rgba(13, 110, 110, 0.06);
  --shadow-md: 0 8px 24px rgba(13, 110, 110, 0.10);
  --shadow-lg: 0 20px 50px rgba(13, 110, 110, 0.14);
  --radius: 16px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== HEADER ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}
.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 20px;
  box-shadow: var(--shadow-sm);
}
.logo-text {
  display: flex;
  flex-direction: column;
  font-weight: 700;
  line-height: 1.15;
}
.logo-text small {
  font-weight: 500;
  font-size: 12px;
  color: var(--text-soft);
}
.nav {
  display: flex;
  gap: 28px;
}
.nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
  transition: color .15s;
}
.nav a:hover { color: var(--primary); text-decoration: none; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .12s, box-shadow .15s, background .15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-ghost:hover {
  background: var(--primary-light);
  text-decoration: none;
}
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-call { font-variant-numeric: tabular-nums; }

/* ========== HERO ========== */
.hero {
  position: relative;
  padding: 80px 0 100px;
  background:
    radial-gradient(circle at 80% 20%, var(--primary-light), transparent 60%),
    linear-gradient(180deg, #fbfdfd 0%, #ffffff 100%);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}
.badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.08;
  margin: 0 0 24px;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.hero h1 br { display: block; }
.lead {
  font-size: 19px;
  color: var(--text-soft);
  margin: 0 0 36px;
  max-width: 540px;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hero-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.hero-meta div {
  display: flex;
  flex-direction: column;
  font-size: 14px;
}
.hero-meta strong {
  color: var(--text);
  font-weight: 600;
  margin-bottom: 4px;
}
.hero-meta span { color: var(--text-soft); }

.hero-visual {
  display: flex;
  justify-content: center;
}
.hero-card {
  background: white;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: flex-start;
  gap: 20px;
  max-width: 360px;
  border: 1px solid var(--border);
  position: relative;
}
.hero-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, var(--primary), transparent);
  -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.hero-card-icon {
  font-size: 38px;
  flex-shrink: 0;
}
.hero-card strong { display: block; font-size: 18px; margin-bottom: 4px; }
.hero-card p { margin: 0; color: var(--text-soft); font-size: 15px; }

/* ========== SECTIONS ========== */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.eyebrow {
  display: inline-block;
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  margin: 0 0 14px;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.section p { color: var(--text-soft); margin: 0; }
.section-head p { font-size: 18px; }

/* ========== CARDS ========== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  background: white;
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}
.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--primary-light);
  display: grid;
  place-items: center;
  font-size: 28px;
  margin-bottom: 18px;
}
.card h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 700;
}
.card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.6;
}

/* ========== TWO COLUMN ========== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.two-col.reverse > div:first-child { order: 2; }

/* ========== ÖFFNUNGSZEITEN ========== */
.hours-card {
  background: white;
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.hours-row:last-of-type { border-bottom: none; }
.hours-row > span:first-child { font-weight: 600; }
.hours-row > span:last-child { color: var(--text-soft); font-variant-numeric: tabular-nums; }
.hours-row .closed { color: #b0b8b8; font-style: italic; }
.hours-row.today {
  background: var(--primary-light);
  margin: 0 -16px;
  padding-left: 16px;
  padding-right: 16px;
  border-radius: var(--radius-sm);
  border-bottom-color: transparent;
}
.hours-row.today > span:first-child { color: var(--primary-dark); }
.hours-row.today > span:last-child { color: var(--primary-dark); font-weight: 600; }
.hours-note {
  margin-top: 18px;
  padding: 14px 16px;
  background: #fff8e6;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: #7a5c00;
  border-left: 3px solid var(--accent);
}

/* ========== PRAXIS / FOTOS ========== */
.praxis-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 200px 200px;
  gap: 12px;
}
.praxis-photo {
  background: linear-gradient(135deg, var(--primary-light), #d4e7e7);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  padding: 16px;
  border: 1px dashed rgba(13, 110, 110, 0.25);
}
.praxis-photo-1 { grid-column: 1 / -1; }

.check-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}
.check-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  color: var(--text);
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
}

/* ========== KONTAKT ========== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}
.contact-card {
  background: white;
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text);
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.contact-icon {
  font-size: 32px;
  margin-bottom: 8px;
}
.contact-card strong { font-size: 14px; color: var(--text-soft); font-weight: 600; }
.contact-card span { font-size: 17px; font-weight: 600; line-height: 1.4; }

.map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  height: 380px;
}
.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ========== FOOTER ========== */
.footer {
  background: #0d2828;
  color: #c8d6d6;
  padding: 60px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer strong {
  display: block;
  color: white;
  margin-bottom: 12px;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.footer p { margin: 0; color: #8fa1a1; font-size: 15px; line-height: 1.7; }
.footer a { color: #c8d6d6; }
.footer a:hover { color: white; }

.logo-footer { color: white; }
.logo-footer .logo-text { color: white; }
.logo-footer .logo-text small { color: #8fa1a1; }
.footer-tag {
  margin-top: 16px !important;
  max-width: 320px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: #6a7878;
}

/* ========== LEGAL PAGES (Impressum / Datenschutz) ========== */
.legal-page {
  padding: 60px 0 90px;
  background: var(--bg-alt);
  min-height: 60vh;
}
.legal-content {
  max-width: 760px;
  background: white;
  padding: 56px 56px 64px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.legal-content h1 {
  font-size: clamp(32px, 4vw, 44px);
  margin: 8px 0 16px;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.legal-content h2 {
  font-size: 22px;
  margin: 36px 0 12px;
  font-weight: 700;
  color: var(--primary-dark);
}
.legal-content p, .legal-content li {
  color: var(--text);
  font-size: 16px;
  line-height: 1.75;
}
.legal-content ul {
  padding-left: 22px;
  margin: 8px 0 16px;
}
.legal-content ul li { margin-bottom: 6px; }
.legal-content code {
  background: #fff4d6;
  color: #7a5c00;
  padding: 2px 8px;
  border-radius: 6px;
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 13px;
  font-weight: 600;
}
.lead-small {
  color: var(--text-soft);
  font-size: 17px;
  margin: 0 0 28px;
}
.legal-warning {
  background: #fff8e6;
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin: 0 0 32px;
  font-size: 15px;
  line-height: 1.6;
}
.legal-warning code {
  background: white;
  border: 1px solid #f0d68c;
}
.legal-meta {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 14px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .nav { display: none; }
  .btn-call { padding: 10px 14px; font-size: 13px; }
  .hero { padding: 56px 0 70px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .hero-card { max-width: 100%; }
  .hero-meta { grid-template-columns: 1fr; gap: 16px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .two-col.reverse > div:first-child { order: initial; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .praxis-visual { grid-template-rows: 160px 160px; }
  .legal-content { padding: 36px 28px 44px; }
  .legal-page { padding: 40px 0 64px; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .header-inner { height: 64px; }
  .logo-text small { display: none; }
  .btn-call { padding: 8px 12px; }
  .btn-call svg { width: 16px; height: 16px; }
  .btn-lg { padding: 14px 24px; font-size: 15px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
  .card { padding: 24px 22px; }
}
