/*
Theme Name: Augenarzt Horn
Theme URI: https://www.augenarzt-horn.de
Author: Augenärztliches Operationszentrum Lahr
Description: Maßgeschneidertes WordPress-Theme für das Augenärztliche Operationszentrum Dr. Peter Horn in Lahr.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: augenarzt-horn
*/

:root {
  --turquoise: #00a99d;
  --turquoise-dark: #007f79;
  --turquoise-ink: #075e61;
  --navy: #123b4b;
  --ink: #1e3035;
  --muted: #63777a;
  --cream: #f4faf8;
  --white: #fff;
  --line: #d7e7e3;
  --orange: #f59a23;
  --shadow: 0 24px 70px rgba(14, 70, 71, .12);
  --radius: 24px;
  --container: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--turquoise-dark); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
.container { width: var(--container); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 1000; padding: 10px 16px; background: var(--navy); color: #fff; }
.skip-link:focus { top: 16px; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.94); border-bottom: 1px solid rgba(0,169,157,.12); backdrop-filter: blur(14px); }
.header-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 13px; color: var(--navy); text-decoration: none; line-height: 1.1; }
.brand img { width: 64px; height: 46px; object-fit: contain; }
.brand strong { display: block; font-family: Georgia, serif; font-size: 20px; font-weight: 500; }
.brand small { display: block; margin-top: 5px; color: var(--turquoise-dark); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.nav-list { display: flex; align-items: center; gap: 25px; margin: 0; padding: 0; list-style: none; }
.nav-list a { color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; }
.nav-list a:hover { color: var(--turquoise-dark); }
.nav-list .nav-cta { padding: 11px 17px; border: 1px solid var(--turquoise); border-radius: 999px; color: var(--turquoise-dark); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; margin: 5px auto; background: var(--navy); }

.hero { position: relative; overflow: hidden; background: linear-gradient(118deg, #e5f7f3 0%, #f8fcfb 55%, #fff 100%); }
.hero::before { content: ""; position: absolute; width: 600px; height: 600px; right: -200px; top: -260px; border: 90px solid rgba(0,169,157,.07); border-radius: 50%; }
.hero-grid { min-height: 720px; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 52px; padding-block: 68px 44px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; color: var(--turquoise-dark); font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 32px; height: 2px; background: var(--turquoise); }
h1, h2, h3 { margin-top: 0; color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-weight: 500; line-height: 1.12; }
h1 { max-width: 720px; margin-bottom: 25px; font-size: clamp(48px, 6vw, 80px); letter-spacing: -.035em; }
h1 span { color: var(--turquoise-dark); }
h2 { margin-bottom: 22px; font-size: clamp(36px, 4.4vw, 58px); letter-spacing: -.025em; }
h3 { margin-bottom: 12px; font-size: 25px; }
.lead { max-width: 660px; margin: 0 0 32px; color: #42585d; font-size: 20px; line-height: 1.65; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 13px 23px; border: 1px solid var(--turquoise); border-radius: 999px; background: var(--turquoise); color: #fff; font-weight: 800; text-decoration: none; transition: .2s ease; }
.button:hover { transform: translateY(-2px); background: var(--turquoise-dark); color: #fff; box-shadow: 0 12px 30px rgba(0,127,121,.22); }
.button.secondary { background: transparent; color: var(--turquoise-dark); }
.button.secondary:hover { background: #fff; color: var(--navy); }
.hero-visual { position: relative; align-self: end; }
.hero-visual::before { content: ""; position: absolute; inset: 15% 1% 3% 12%; background: #cceee8; border-radius: 50% 50% 12px 12px; transform: rotate(3deg); }
.hero-visual img { position: relative; z-index: 1; width: 100%; max-height: 650px; object-fit: contain; object-position: center bottom; }
.hero-badge { position: absolute; z-index: 3; left: -24px; bottom: 42px; width: 180px; padding: 18px; border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.hero-badge strong { display: block; color: var(--navy); font-size: 27px; line-height: 1; }
.hero-badge span { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.4; }

.trustbar { position: relative; z-index: 5; margin-top: -1px; background: var(--navy); color: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-item { display: flex; gap: 15px; padding: 26px 30px; border-right: 1px solid rgba(255,255,255,.15); }
.trust-item:last-child { border-right: 0; }
.trust-icon { color: #59d5ca; font-size: 23px; line-height: 1; }
.trust-item strong { display: block; font-size: 15px; line-height: 1.3; }
.trust-item span { display: block; margin-top: 5px; color: #c9d9dc; font-size: 12px; line-height: 1.4; }

.section { padding-block: 112px; }
.section.soft { background: var(--cream); }
.section.dark { background: var(--navy); color: #dce8ea; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section-kicker { margin: 0 0 14px; color: var(--turquoise-dark); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.section.dark .section-kicker { color: #59d5ca; }
.section-intro { max-width: 730px; margin: 0 0 48px; color: var(--muted); font-size: 19px; }
.section.dark .section-intro { color: #c8d8db; }
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.service-card { position: relative; overflow: hidden; min-height: 340px; padding: 42px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 12px 45px rgba(16,70,70,.06); }
.service-card::after { content: ""; position: absolute; right: -65px; bottom: -65px; width: 190px; height: 190px; border: 35px solid rgba(0,169,157,.07); border-radius: 50%; }
.service-number { display: inline-grid; width: 46px; height: 46px; margin-bottom: 40px; place-items: center; border-radius: 50%; background: #def5f1; color: var(--turquoise-dark); font-weight: 800; }
.service-card p { max-width: 540px; margin: 0; color: var(--muted); }
.service-card a { display: inline-block; margin-top: 22px; font-weight: 800; }

.process-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; align-items: start; }
.process-copy { position: sticky; top: 130px; }
.process-list { position: relative; display: grid; gap: 15px; }
.process-step { display: grid; grid-template-columns: 68px 1fr; gap: 20px; padding: 26px; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: rgba(255,255,255,.04); }
.process-step b { display: grid; width: 54px; height: 54px; place-items: center; border-radius: 50%; background: var(--turquoise); color: #fff; }
.process-step p { margin: 0; color: #bdcfd2; font-size: 15px; }

.personal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.clinic-photo { position: relative; }
.clinic-photo img { width: 100%; min-height: 480px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.clinic-photo::after { content: "Klinikum Lahr"; position: absolute; right: 20px; bottom: 20px; padding: 9px 14px; border-radius: 999px; background: rgba(18,59,75,.88); color: #fff; font-size: 12px; font-weight: 700; }
.check-list { margin: 30px 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; margin: 13px 0; padding-left: 33px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 1px; display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: #dff5f1; color: var(--turquoise-dark); font-size: 13px; font-weight: 900; }

.cooperation { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.cooperation-card { padding: 40px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.cooperation-card.accent { border: 0; background: var(--turquoise); color: #fff; }
.cooperation-card.accent h3, .cooperation-card.accent a { color: #fff; }
.cooperation-card p { margin-bottom: 0; }
.notice { margin-top: 30px; padding: 24px 28px; border-left: 4px solid var(--orange); border-radius: 0 14px 14px 0; background: #fff8ec; color: #604a2b; }
.notice strong { color: #523a18; }

.doctor-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 75px; align-items: start; }
.doctor-card { padding: 34px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); text-align: center; }
.doctor-card img { width: 130px; margin: 0 auto 18px; }
.doctor-card strong { display: block; color: var(--navy); font-family: Georgia, serif; font-size: 25px; font-weight: 500; }
.doctor-card span { display: block; margin-top: 7px; color: var(--turquoise-dark); font-size: 13px; font-weight: 800; }
.timeline { display: grid; gap: 0; }
.timeline-item { position: relative; display: grid; grid-template-columns: 100px 1fr; gap: 22px; padding: 0 0 28px 27px; border-left: 1px solid #b9d9d4; }
.timeline-item::before { content: ""; position: absolute; left: -6px; top: 7px; width: 11px; height: 11px; border-radius: 50%; background: var(--turquoise); }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-year { color: var(--turquoise-dark); font-weight: 800; }
.timeline-item strong { color: var(--navy); }
.timeline-item p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }

.contact-section { position: relative; overflow: hidden; background: var(--turquoise); color: #fff; }
.contact-section::before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; bottom: -260px; border: 90px solid rgba(255,255,255,.11); border-radius: 50%; }
.contact-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 80px; align-items: center; }
.contact-section h2 { color: #fff; }
.contact-section .section-kicker { color: #d9fffa; }
.contact-details { display: grid; gap: 12px; }
.contact-line { display: flex; justify-content: space-between; gap: 30px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.25); }
.contact-line span { color: #ddf7f4; }
.contact-line a, .contact-line strong { color: #fff; font-weight: 800; text-decoration: none; text-align: right; }
.contact-note { margin-top: 25px; font-size: 14px; color: #e0f8f5; }

.site-footer { padding: 58px 0 25px; background: #092c38; color: #bfd0d4; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 60px; }
.footer-brand { color: #fff; font-family: Georgia, serif; font-size: 22px; }
.site-footer h3 { color: #fff; font-family: inherit; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.site-footer p, .site-footer a { color: #bfd0d4; font-size: 14px; }
.footer-links { display: grid; gap: 8px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 45px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); color: #88a2a8; font-size: 12px; }

.content-page { min-height: 60vh; padding-block: 80px; }
.content-page .entry-content { max-width: 820px; }
.content-page h1 { font-size: clamp(42px, 6vw, 68px); }

.landing-page { background: var(--cream); }
.landing-hero { min-height: calc(100vh - 86px); display: grid; align-items: center; padding: 56px 0; }
.landing-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(360px, .8fr); gap: clamp(36px, 7vw, 108px); align-items: center; }
.landing-copy { max-width: 680px; }
.landing-copy h1 { max-width: 650px; margin: 0 0 24px; color: var(--navy); font-size: clamp(2.75rem, 6vw, 5.5rem); line-height: .98; letter-spacing: -.055em; }
.landing-lead { max-width: 590px; margin: 0 0 32px; font-size: clamp(1.1rem, 1.7vw, 1.35rem); line-height: 1.65; color: var(--ink); }
.landing-place { max-width: 460px; padding: 24px 28px; border-left: 5px solid var(--turquoise); background: var(--white); box-shadow: 0 16px 36px rgba(14, 70, 71, .08); }
.landing-place span { display: block; margin-bottom: 5px; color: var(--turquoise-ink); font-size: .78rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.landing-place strong { display: block; color: var(--navy); font-size: 1.25rem; }
.landing-place p, .landing-note { margin: 5px 0 0; color: var(--muted); }
.landing-note { max-width: 520px; margin-top: 22px; font-size: .95rem; line-height: 1.55; }
.landing-photo { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: #ddd; box-shadow: var(--shadow); aspect-ratio: 3 / 4; }
.landing-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 24%; }
.preview-lock { padding: 96px 0; min-height: 60vh; }
.preview-lock-card { max-width: 620px; padding: clamp(28px, 5vw, 56px); border-radius: var(--radius); background: var(--cream); box-shadow: var(--shadow); }
.preview-lock-card h1 { margin-top: 0; color: var(--navy); }
.preview-lock-card input[type="password"] { width: 100%; margin: 12px 0; padding: 13px 15px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.preview-lock-card input[type="submit"] { border: 0; border-radius: 999px; padding: 13px 20px; color: var(--white); background: var(--turquoise); font: inherit; font-weight: 800; cursor: pointer; }

@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .main-navigation { display: none; position: absolute; left: 0; right: 0; top: 84px; padding: 18px 20px 26px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 35px rgba(0,0,0,.08); }
  .main-navigation.open { display: block; }
  .nav-list { align-items: stretch; flex-direction: column; gap: 2px; }
  .nav-list a { display: block; padding: 12px; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; padding-top: 75px; }
  .hero-copy { text-align: center; }
  .eyebrow, .button-row { justify-content: center; }
  .lead { margin-inline: auto; }
  .hero-visual { max-width: 620px; margin: 0 auto; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.15); }
  .services, .personal-grid, .cooperation, .contact-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; gap: 40px; }
  .process-copy { position: static; }
  .doctor-grid { grid-template-columns: 1fr; }
  .doctor-card { max-width: 430px; }
  .landing-hero { min-height: auto; padding: 40px 0 56px; }
  .landing-grid { grid-template-columns: 1fr; gap: 34px; }
  .landing-photo { max-width: 560px; width: 100%; margin-inline: auto; }
}

@media (max-width: 640px) {
  :root { --container: min(100% - 28px, 1180px); }
  body { font-size: 16px; }
  .brand strong { font-size: 17px; }
  .brand small { display: none; }
  .brand img { width: 50px; }
  .section { padding-block: 76px; }
  h1 { font-size: 45px; }
  h2 { font-size: 38px; }
  .hero-grid { gap: 25px; padding-top: 55px; }
  .hero-badge { left: 0; bottom: 15px; width: 150px; }
  .service-card, .cooperation-card { padding: 28px; }
  .process-step { grid-template-columns: 48px 1fr; padding: 20px; }
  .process-step b { width: 44px; height: 44px; }
  .clinic-photo img { min-height: 330px; }
  .timeline-item { grid-template-columns: 1fr; gap: 2px; }
  .contact-line { align-items: flex-start; flex-direction: column; gap: 3px; }
  .contact-line a, .contact-line strong { text-align: left; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
