:root {
  --ink: #102b2d;
  --ink-soft: #526668;
  --paper: #f5f1e8;
  --surface: #fffdf8;
  --petrol: #0d4f53;
  --petrol-dark: #07393c;
  --mint: #bfe3d5;
  --sun: #f4b94f;
  --line: rgba(16, 43, 45, .14);
  --shadow: 0 24px 70px rgba(8, 48, 50, .14);
  --radius: 24px;
  --shell: min(1160px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; }
.shell { width: var(--shell); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 99; top: 12px; left: 12px; padding: 10px 16px; border-radius: 10px; color: white; background: var(--petrol); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header { position: sticky; z-index: 30; top: 0; color: white; background: rgba(7, 40, 42, .93); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255,255,255,.09); }
.nav-wrap { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 48px; aspect-ratio: 1; display: grid; place-items: center; position: relative; border-radius: 15px; color: var(--petrol-dark); background: var(--sun); font-weight: 900; letter-spacing: -.08em; box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; width: 8px; height: 8px; border: 2px solid var(--mint); border-radius: 50%; }
.brand-mark::before { top: 6px; right: 7px; }
.brand-mark::after { bottom: 7px; left: 7px; }
.brand-video { width: 72px; height: 50px; object-fit: cover; border-radius: 13px; background: #061f21; box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); }
.brand-copy { display: grid; line-height: 1.15; }
.brand-copy strong { font-size: 1.02rem; letter-spacing: .01em; }
.brand-copy small { margin-top: 4px; color: rgba(255,255,255,.64); font-size: .72rem; }
.main-nav { display: flex; align-items: center; gap: 20px; }
.main-nav a { position: relative; text-decoration: none; color: rgba(255,255,255,.78); font-size: .87rem; font-weight: 700; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 2px; background: var(--sun); transition: right .25s ease; }
.main-nav a:hover { color: white; }
.main-nav a:hover::after { right: 0; }
.main-nav a[aria-current="page"] { color: white; }
.main-nav a[aria-current="page"]::after { right: 0; }
.menu-button { display: none; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; color: white; background: transparent; }
.menu-button span:not(.sr-only) { display: block; width: 18px; height: 2px; margin: 4px auto; border-radius: 2px; background: currentColor; }

.hero { min-height: 680px; position: relative; isolation: isolate; display: grid; align-items: center; overflow: hidden; color: white; background: var(--petrol-dark); }
.hero-image, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { z-index: -2; object-fit: cover; object-position: center 44%; filter: saturate(.85) contrast(1.05); transform: scale(1.02); }
.hero-shade { z-index: -1; background: linear-gradient(90deg, rgba(5,34,36,.96) 0%, rgba(5,34,36,.82) 46%, rgba(5,34,36,.26) 100%), linear-gradient(0deg, rgba(5,34,36,.7), transparent 55%); }
.hero-content { padding-block: 96px 72px; }
.eyebrow, .kicker { margin: 0 0 16px; font-size: .75rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--mint); }
.eyebrow span { width: 34px; height: 2px; background: var(--sun); }
.hero h1 { max-width: 780px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.25rem, 6.3vw, 6.7rem); line-height: .95; letter-spacing: -.055em; font-weight: 500; text-wrap: balance; }
.hero h1 em { color: var(--sun); font-style: italic; }
.hero-lead { max-width: 650px; margin: 28px 0 0; color: rgba(255,255,255,.78); font-size: clamp(1rem, 1.5vw, 1.22rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 0 22px; border: 1px solid transparent; border-radius: 999px; text-decoration: none; font-size: .9rem; font-weight: 850; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--petrol-dark); background: var(--sun); }
.button-secondary { color: white; border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.07); }
.hero-facts { max-width: 650px; margin: 58px 0 0; padding: 26px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; border-top: 1px solid rgba(255,255,255,.17); }
.hero-facts li { display: grid; }
.hero-facts strong { color: white; font-size: .88rem; }
.hero-facts span { color: rgba(255,255,255,.55); font-size: .75rem; }

.section { padding-block: 104px; }
.section-light { background: var(--surface); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 46px; }
.section-heading > p { max-width: 440px; margin: 0; color: var(--ink-soft); }
.kicker { color: #387f77; }
.kicker-light { color: var(--mint); }
h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.3rem, 4.5vw, 4.4rem); font-weight: 500; line-height: 1.02; letter-spacing: -.045em; }
h3 { margin: 0; font-size: 1.3rem; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature-card { min-height: 340px; position: relative; display: flex; flex-direction: column; padding: 30px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #f8f4ec; }
.feature-card-accent { color: white; background: var(--petrol); border-color: var(--petrol); }
.feature-number { position: absolute; top: 28px; right: 28px; color: rgba(16,43,45,.35); font: 700 .75rem/1 monospace; }
.feature-card-accent .feature-number { color: rgba(255,255,255,.5); }
.feature-icon { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: auto; border-radius: 18px; color: var(--petrol-dark); background: var(--sun); font-size: 1.35rem; font-weight: 900; }
.feature-card h3 { margin-top: 32px; }
.feature-card p { color: var(--ink-soft); font-size: .93rem; }
.feature-card-accent p { color: rgba(255,255,255,.68); }
.feature-card a { margin-top: 16px; font-size: .83rem; font-weight: 900; text-decoration: none; }

.calculator-section { background: var(--paper); }
.calculator-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(360px, .7fr); gap: clamp(50px, 9vw, 130px); align-items: center; }
.calculator-intro > p:not(.kicker):not(.notice) { max-width: 590px; color: var(--ink-soft); font-size: 1.05rem; }
.notice { display: inline-block; margin-top: 16px; padding: 10px 14px; border-radius: 10px; color: #72511a; background: #fae9c5; font-size: .75rem; }
.calculator-card { display: grid; gap: 12px; padding: 32px; border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.calculator-card label { margin-top: 4px; font-size: .78rem; font-weight: 850; }
.input-wrap { position: relative; }
.input-wrap input, .calculator-card select { width: 100%; height: 54px; padding: 0 48px 0 16px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: #fbfaf6; outline: none; }
.input-wrap span { position: absolute; top: 50%; right: 16px; transform: translateY(-50%); color: var(--ink-soft); }
.input-wrap input:focus, .calculator-card select:focus { border-color: var(--petrol); box-shadow: 0 0 0 3px rgba(13,79,83,.12); }
.result { margin-top: 14px; display: grid; justify-items: center; padding: 26px; border-radius: 18px; color: white; background: var(--petrol); }
.result span, .result small { color: rgba(255,255,255,.67); font-size: .75rem; }
.result strong { margin: 4px 0; font: 500 clamp(2.3rem, 5vw, 3.7rem)/1 Georgia, serif; }
.calculator-teaser { min-height: 320px; display: grid; align-content: center; gap: 8px; padding: 38px; border-radius: var(--radius); color: white; background: linear-gradient(145deg, var(--petrol-dark), var(--petrol)); box-shadow: var(--shadow); }
.calculator-teaser span { color: rgba(255,255,255,.62); font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; }
.calculator-teaser strong { font: 500 clamp(2rem, 4.5vw, 3.6rem)/1.1 Georgia, serif; }
.calculator-teaser div { height: 1px; margin: 18px 0; background: rgba(255,255,255,.17); }

.weather-section { padding-top: 0; background: var(--paper); }
.weather-card { min-height: 440px; display: grid; grid-template-columns: 1.25fr .85fr; align-items: center; gap: 40px; padding: clamp(36px, 6vw, 72px); border-radius: 32px; color: white; background: linear-gradient(135deg, var(--petrol-dark), var(--petrol)); box-shadow: var(--shadow); }
.weather-copy { max-width: 480px; color: rgba(255,255,255,.62); }
.weather-source { margin-top: 18px; color: rgba(255,255,255,.48); font-size: .72rem; }
.weather-source a { color: inherit; text-underline-offset: 3px; }
.weather-now { display: grid; justify-items: center; }
.weather-now strong { font: 500 clamp(4.5rem, 9vw, 7.5rem)/1 Georgia, serif; }
.weather-now span { color: rgba(255,255,255,.62); font-size: .78rem; }
.weather-symbol { min-width: 88px; margin-bottom: 10px; font-size: 4.5rem; line-height: 1; text-align: center; filter: drop-shadow(0 10px 22px rgba(0,0,0,.2)); }
.weather-card[data-state="error"] .weather-symbol { font-size: 3.5rem; }
.forecast { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.16); }
.forecast div { display: flex; justify-content: space-between; gap: 16px; padding: 20px 22px 0; border-right: 1px solid rgba(255,255,255,.12); }
.forecast div:last-child { border: 0; }
.forecast span { color: rgba(255,255,255,.58); }

.gallery-section { background: var(--surface); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: 14px; }
.gallery-item { position: relative; padding: 0; overflow: hidden; border: 0; border-radius: 20px; cursor: zoom-in; background: #d7ded8; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.gallery-item:hover img { transform: scale(1.045); }
.gallery-wide { grid-column: span 2; }
.gallery-tall { grid-row: span 2; }

.about-section { background: var(--surface); padding-top: 0; }
.about-card { display: grid; grid-template-columns: auto 1fr auto; gap: 36px; align-items: center; padding: clamp(30px, 5vw, 56px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-monogram { width: 82px; height: 82px; display: grid; place-items: center; border-radius: 50%; color: var(--petrol-dark); background: var(--mint); font: 600 1.5rem/1 Georgia, serif; }
.about-card h2 { max-width: 720px; font-size: clamp(2rem, 3.5vw, 3.4rem); }
.about-card p:not(.kicker) { max-width: 720px; color: var(--ink-soft); }
.text-link { white-space: nowrap; font-size: .84rem; font-weight: 900; text-decoration: none; }
.protected-email { appearance: none; padding: 0; border: 0; border-radius: 3px; color: inherit; background: transparent; cursor: pointer; text-align: left; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.protected-email:hover { text-decoration-thickness: 2px; }
.protected-email:focus-visible { outline: 3px solid var(--sun); outline-offset: 4px; }

.page-hero { min-height: 480px; display: grid; align-items: end; position: relative; isolation: isolate; overflow: hidden; padding-block: 95px 70px; color: white; background: var(--petrol-dark); }
.page-hero::before { content: ""; position: absolute; z-index: -2; inset: 0; background: url("assets/panorama.png") center/cover no-repeat; filter: saturate(.75); }
.page-hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(5,34,36,.98), rgba(5,34,36,.7) 60%, rgba(5,34,36,.42)); }
.page-hero-gallery::before { background-image: url("assets/stadt.jpg"); }
.page-hero-calculator::before { background-image: url("assets/technik.jpg"); }
.page-hero-legal { min-height: 410px; }
.breadcrumbs { display: flex; gap: 10px; margin: 0 0 42px; color: rgba(255,255,255,.55); font-size: .78rem; font-weight: 700; }
.breadcrumbs a { text-decoration: none; }
.page-hero h1 { max-width: 920px; margin: 0; font: 500 clamp(3.7rem, 8vw, 7.5rem)/.92 Georgia, serif; letter-spacing: -.055em; overflow-wrap: anywhere; }
.page-hero h1 em { color: var(--sun); font-style: italic; }
.page-hero > .shell > p:last-child { max-width: 690px; margin: 28px 0 0; color: rgba(255,255,255,.73); font-size: 1.04rem; }
.page-cta { padding-top: 0; background: var(--surface); }
.page-cta-card { min-height: 280px; display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: clamp(34px, 6vw, 68px); border-radius: 30px; color: white; background: var(--petrol); }
.page-cta-card h2 { max-width: 690px; }
.gallery-page-grid { grid-auto-rows: 290px; }

.calculator-page-section { background: var(--paper); }
.calculator-benefits { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.calculator-benefits span { padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.62); font-size: .76rem; font-weight: 800; }
.calculator-embed { padding: clamp(22px, 4vw, 44px); border: 1px solid var(--line); border-radius: 30px; background: white; box-shadow: var(--shadow); }
.embed-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 30px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.embed-heading h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
.embed-heading > p { max-width: 300px; margin: 0; color: var(--ink-soft); }
.calculator-embed iframe { display: block; min-height: 1230px; border: 0; background: white; }
.service-note { margin: 22px 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .78rem; }
.salary-info { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 30px; margin-top: 36px; padding: clamp(30px, 5vw, 54px); border-radius: 26px; color: white; background: var(--petrol); }
.salary-info h2 { font-size: clamp(2.2rem, 4vw, 3.6rem); }
.salary-info > div:nth-child(2) { display: grid; text-align: right; }
.salary-info > div:nth-child(2) strong { color: var(--sun); font: 500 clamp(2.4rem, 5vw, 4rem)/1 Georgia, serif; }
.salary-info > div:nth-child(2) span, .salary-info > p { color: rgba(255,255,255,.64); font-size: .82rem; }
.salary-info > p { grid-column: 1 / -1; margin: 0; }

.legal-page, .imprint-page { background: var(--surface); }
.legal-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(45px, 7vw, 95px); align-items: start; }
.toc { position: sticky; top: 108px; display: grid; gap: 5px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.toc strong { margin-bottom: 12px; }
.toc a { padding: 7px 0; color: var(--ink-soft); text-decoration: none; font-size: .78rem; }
.toc a:hover { color: var(--petrol); }
.print-button { margin-top: 16px; padding: 11px 14px; border: 0; border-radius: 12px; color: white; background: var(--petrol); cursor: pointer; font-size: .78rem; font-weight: 850; }
.legal-content { min-width: 0; }
.legal-section { position: relative; padding: 0 0 62px 74px; border-left: 1px solid var(--line); }
.legal-section:last-of-type { padding-bottom: 20px; }
.legal-number { position: absolute; left: -23px; top: 0; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; color: var(--petrol-dark); background: var(--sun); font: 800 .74rem/1 monospace; }
.legal-section h2 { margin-bottom: 22px; font-size: clamp(2rem, 4vw, 3.6rem); }
.legal-section p { color: var(--ink-soft); }
.legal-section a { color: var(--petrol); font-weight: 750; }
.legal-list { padding: 0; display: grid; gap: 8px; list-style: none; color: var(--ink-soft); }
.legal-list li { position: relative; padding-left: 24px; }
.legal-list li::before { content: "✓"; position: absolute; left: 0; color: #31806f; font-weight: 900; }
.legal-updated { margin: 36px 0 0; padding: 18px 20px; border-radius: 14px; color: var(--ink-soft); background: var(--paper); font-size: .8rem; }
.imprint-actions { display: flex; justify-content: flex-end; margin-bottom: 26px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contact-card { min-height: 360px; position: relative; padding: 32px; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); }
.contact-card > span { position: absolute; top: 28px; right: 28px; color: rgba(16,43,45,.3); font: 700 .75rem/1 monospace; }
.contact-card h2 { margin-bottom: 24px; font-size: clamp(2rem, 3vw, 3rem); }
.contact-card p:not(.kicker) { color: var(--ink-soft); }
.contact-card a { overflow-wrap: anywhere; }
.contact-card-accent { color: white; background: var(--petrol); border-color: var(--petrol); }
.contact-card-accent > span, .contact-card-accent p:not(.kicker) { color: rgba(255,255,255,.64); }

.feature-card-game { color: white; background: linear-gradient(145deg, #49316e, #1e6c73); }
.feature-card-game p, .feature-card-game .feature-number { color: rgba(255,255,255,.68); }
.feature-card-game a { color: white; }
.feature-card-game .feature-icon { color: #49316e; background: #f3ca67; }
.game-hero { color: white; background: radial-gradient(circle at 78% 30%, rgba(243,202,103,.2), transparent 25%), linear-gradient(130deg, #092f32, #49316e); }
.game-hero p:not(.breadcrumbs):not(.eyebrow) { max-width: 720px; color: rgba(255,255,255,.7); }
.game-page { background: var(--surface); }
.game-layout { display: grid; grid-template-columns: minmax(260px, .72fr) minmax(440px, 1.25fr); gap: clamp(30px, 6vw, 82px); align-items: center; }
.game-sidebar h2 { font-size: clamp(2.25rem, 4vw, 4rem); }
.game-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 30px 0 20px; }
.game-stats div { display: grid; gap: 3px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.game-stats span { color: var(--ink-soft); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.game-stats strong { font: 600 2rem/1 Georgia, serif; }
.game-status { min-height: 52px; color: var(--ink-soft); }
.game-restart { width: 100%; margin-top: 8px; }
.game-help { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink-soft); }
.game-help summary { color: var(--ink); cursor: pointer; font-weight: 800; }
.game-stage { display: grid; justify-items: center; padding: clamp(18px, 3vw, 30px); border-radius: 30px; background: linear-gradient(145deg, var(--petrol-dark), #49316e); box-shadow: var(--shadow); }
.match3-board { width: min(100%, 620px); display: grid; grid-template-columns: repeat(8, 1fr); gap: clamp(3px, .7vw, 7px); padding: clamp(8px, 1.4vw, 15px); border: 1px solid rgba(255,255,255,.12); border-radius: 22px; background: rgba(3,27,29,.42); }
.game-cell { aspect-ratio: 1; display: grid; place-items: center; padding: 0; border: 2px solid rgba(255,255,255,.14); border-radius: clamp(8px, 1.3vw, 15px); color: white; cursor: pointer; font: 900 clamp(1.1rem, 3vw, 2.25rem)/1 Georgia, serif; text-shadow: 0 2px 8px rgba(0,0,0,.28); box-shadow: inset 0 1px 1px rgba(255,255,255,.35), 0 6px 12px rgba(0,0,0,.16); transition: transform .16s ease, opacity .16s ease, border-color .16s ease; }
.game-cell:hover:not(:disabled) { transform: translateY(-2px) scale(1.035); border-color: rgba(255,255,255,.55); }
.game-cell:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.game-cell.is-selected { transform: scale(.86); border-color: white; box-shadow: 0 0 0 4px var(--sun), inset 0 1px 1px rgba(255,255,255,.35); }
.game-cell.is-clearing { transform: scale(.35); opacity: .08; }
.gem-ruby { background: linear-gradient(145deg, #ef6a78, #9f203b); }
.gem-amber { background: linear-gradient(145deg, #ffd36f, #d17b19); }
.gem-emerald { background: linear-gradient(145deg, #6ed5a6, #16765c); }
.gem-sapphire { background: linear-gradient(145deg, #67b9f0, #245aa7); }
.gem-amethyst { background: linear-gradient(145deg, #bd8bf2, #713ca6); }
.gem-pearl { background: linear-gradient(145deg, #edf7f2, #79a9a5); }
.game-note { margin: 16px 0 0; color: rgba(255,255,255,.55); font-size: .74rem; text-align: center; }

@media (max-width: 1050px) and (min-width: 801px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .main-nav { gap: 13px; }
  .main-nav a { font-size: .78rem; }
}
.imprint-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 82px; }
.imprint-details h2 { margin-bottom: 22px; font-size: clamp(2rem, 3.5vw, 3.2rem); }
.imprint-details p, .imprint-details li { color: var(--ink-soft); }

#ai-chatbot-toggle { position: fixed; z-index: 60; right: 22px; bottom: 22px; width: 58px; height: 58px; border: 0; border-radius: 20px; color: var(--petrol-dark); background: var(--sun); box-shadow: 0 16px 40px rgba(5,34,36,.28); cursor: pointer; font-size: 1.45rem; }
#ai-chatbot-window { position: fixed; z-index: 61; right: 22px; bottom: 92px; width: min(390px, calc(100% - 28px)); max-height: min(620px, calc(100vh - 120px)); display: none; grid-template-rows: auto minmax(180px, 1fr) auto auto; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 24px; background: white; box-shadow: 0 28px 80px rgba(5,34,36,.32); }
#ai-chatbot-window.open { display: grid; }
.ai-chatbot-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px; color: white; background: var(--petrol); }
.ai-chatbot-title { font-weight: 900; }
.ai-chatbot-subtitle { color: rgba(255,255,255,.62); font-size: .72rem; }
.ai-chatbot-close { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; color: white; background: transparent; cursor: pointer; }
.ai-chatbot-messages { padding: 18px; display: grid; align-content: start; gap: 12px; overflow-y: auto; background: #f5f1e8; }
.ai-msg { display: flex; }
.ai-msg.user { justify-content: flex-end; }
.ai-msg-bubble { max-width: 86%; padding: 12px 14px; border-radius: 15px 15px 15px 4px; color: var(--ink); background: white; box-shadow: 0 5px 18px rgba(5,34,36,.08); font-size: .84rem; }
.ai-msg.user .ai-msg-bubble { color: white; background: var(--petrol); border-radius: 15px 15px 4px 15px; }
.ai-msg-bubble a { color: #16716b; font-weight: 850; }
.ai-chatbot-suggestions { display: flex; gap: 6px; padding: 11px 14px; overflow-x: auto; border-top: 1px solid var(--line); }
.ai-suggestion { flex: 0 0 auto; padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--petrol); background: white; cursor: pointer; font-size: .7rem; font-weight: 800; }
.ai-chatbot-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.ai-chatbot-form input { min-width: 0; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; outline: none; }
.ai-chatbot-form input:focus { border-color: var(--petrol); box-shadow: 0 0 0 3px rgba(13,79,83,.1); }
.ai-chatbot-send { padding: 0 14px; border: 0; border-radius: 11px; color: white; background: var(--petrol); cursor: pointer; font-size: .78rem; font-weight: 850; }

.site-footer { padding-block: 54px; color: rgba(255,255,255,.72); background: #062e31; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: end; }
.footer-grid strong { color: white; }
.footer-grid p { margin: 5px 0 0; font-size: .82rem; }
.footer-grid nav { display: flex; gap: 24px; }
.footer-grid a { text-decoration: none; font-size: .8rem; font-weight: 700; }
.footer-grid small { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); }

.lightbox { width: min(1000px, calc(100% - 32px)); padding: 0; overflow: visible; border: 0; border-radius: 20px; background: transparent; }
.lightbox::backdrop { background: rgba(2,22,24,.9); backdrop-filter: blur(8px); }
.lightbox img { width: 100%; max-height: 80vh; object-fit: contain; border-radius: 20px; }
.lightbox button { position: absolute; z-index: 2; top: -16px; right: -12px; width: 42px; height: 42px; border: 0; border-radius: 50%; color: var(--ink); background: white; cursor: pointer; font-size: 1.7rem; }

@media (max-width: 800px) {
  :root { --shell: min(100% - 28px, 680px); }
  .nav-wrap { min-height: 70px; }
  .menu-button { display: block; }
  .main-nav { display: none; position: absolute; top: 70px; left: 0; right: 0; padding: 18px 20px 24px; flex-direction: column; align-items: stretch; gap: 0; background: #07282a; box-shadow: 0 22px 35px rgba(4,24,25,.25); }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .hero { min-height: 710px; }
  .hero-content { padding-block: 72px 54px; }
  .hero h1 { font-size: clamp(2.9rem, 14vw, 4.6rem); overflow-wrap: anywhere; }
  .hero-shade { background: linear-gradient(90deg, rgba(5,34,36,.95), rgba(5,34,36,.66)), linear-gradient(0deg, rgba(5,34,36,.75), transparent); }
  .hero-facts { grid-template-columns: 1fr; gap: 12px; margin-top: 42px; }
  .hero-facts li { grid-template-columns: 110px 1fr; }
  .section { padding-block: 74px; }
  .section-heading { display: grid; gap: 18px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 290px; }
  .calculator-layout { grid-template-columns: 1fr; gap: 36px; }
  .game-layout { grid-template-columns: 1fr; }
  .game-sidebar { max-width: 620px; }
  .game-stage { padding: 12px; }
  .weather-card { grid-template-columns: 1fr; text-align: center; }
  .forecast { grid-template-columns: 1fr; text-align: left; }
  .forecast div { padding: 14px 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 190px; }
  .gallery-wide { grid-column: span 2; }
  .about-card { grid-template-columns: 1fr; }
  .text-link { white-space: normal; }
  .footer-grid { grid-template-columns: 1fr; align-items: start; }
  .footer-grid nav { flex-wrap: wrap; }
  .page-cta-card, .embed-heading { display: grid; }
  .legal-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
  .salary-info, .contact-grid, .imprint-details { grid-template-columns: 1fr; }
  .salary-info > div:nth-child(2) { text-align: left; }
  .imprint-details { gap: 26px; margin-top: 58px; }
}

@media (max-width: 430px) {
  .brand-copy small { display: none; }
  .hero-actions { display: grid; }
  .hero-actions .button { width: 100%; }
  .hero-facts { display: none; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .gallery-wide { grid-column: auto; }
  .gallery-tall { grid-row: auto; }
  .calculator-card { padding: 22px; }
  .brand-video { width: 58px; height: 44px; }
  .page-hero { min-height: 430px; padding-block: 78px 58px; }
  .legal-section { padding-left: 50px; }
  #ai-chatbot-toggle { right: 14px; bottom: 14px; }
  #ai-chatbot-window { right: 14px; bottom: 82px; }
}

@media print {
  .site-header, .site-footer, .toc, .imprint-actions, #ai-chatbot-toggle, #ai-chatbot-window { display: none !important; }
  .page-hero { min-height: 0; padding: 20px 0; color: black; background: white; }
  .page-hero::before, .page-hero::after { display: none; }
  .legal-layout { display: block; }
  .legal-section { break-inside: avoid; }
}

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