/* WEB & SMART HOME KONZEPT – gemeinsame Startseite (lokaler Entwurf)
   Eigenständige Seite. Farben, Schrift und Formen folgen der Webdesign-Hauptseite:
   Weiß, Hellgrau, Anthrazit, Navy, Türkis als Akzent. Kein JavaScript. */

:root {
  --bg: #f5f7f9; --surface: #eef1f4; --card: #fff; --line: #e1e5ea; --line-strong: #d0d7df;
  --text: #222222; --muted: #303030; --heading: #141820; --navy: #13223f; --teal: #14a3a3; --teal-dark: #055252;
  --radius: 16px; --radius-l: 24px; --container: 1240px; --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --font: "Avenir Next", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 1.125rem; line-height: 1.6; }
@media (max-width: 560px) { body { font-size: 1.0625rem; } }
svg { display: block; max-width: 100%; }
a { color: var(--teal-dark); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
h1, h2 { color: var(--heading); font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; margin: 0; text-wrap: balance; overflow-wrap: break-word; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; color: #fff; }
.preview-note { background: var(--navy); color: #eef2f8; font-size: 0.9375rem; letter-spacing: 0.04em; text-align: center; padding: 7px var(--gutter); }
.preview-note strong { color: #fff; font-weight: 600; }

/* Kopf */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.9); -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; min-height: 72px; padding-block: 10px; }
.wordmark { display: inline-flex; flex-direction: column; color: var(--navy); text-decoration: none; line-height: 1; margin: 0; }
.wordmark:hover { color: var(--navy); }
.wordmark-name { font-size: 1rem; font-weight: 700; letter-spacing: 0.08em; white-space: nowrap; }
.wordmark-name span { color: var(--teal-dark); font-weight: 400; padding-inline: 0.3em; }
.wordmark-sub { font-size: 0.9375rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--teal-dark); margin-top: 6px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px; margin-inline: -14px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; color: var(--text); text-decoration: none; font-size: 1rem; font-weight: 500; transition: color 0.2s, background-color 0.2s; }
.site-nav a:hover { color: var(--navy); background: var(--surface); }
@media (max-width: 380px) { .wordmark-name { font-size: 0.9375rem; letter-spacing: 0.05em; } }

/* Einleitung */
.hero { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(900px 520px at 88% 0%, rgba(20, 163, 163, 0.13), transparent 62%), radial-gradient(760px 480px at 8% 100%, rgba(74, 111, 165, 0.12), transparent 60%), #fff; padding-block: clamp(56px, 9vw, 120px) clamp(120px, 14vw, 190px); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); mask-image: linear-gradient(180deg, #000 0%, transparent 85%); }
.hero-intro { text-align: center; }
.hero h1 { font-size: clamp(1.625rem, 0.75rem + 4.4vw, 3.75rem); line-height: 1.05; letter-spacing: -0.03em; }
.hero h1 em { display: block; font-style: normal; color: var(--teal-dark); }
.lead { margin: 24px auto 0; max-width: 62ch; font-size: clamp(1.125rem, 1.05rem + 0.45vw, 1.3125rem); line-height: 1.55; color: var(--muted); }
.hero .wrap > * { animation: rise 0.8s var(--ease) both; }
.hero .wrap > *:nth-child(2) { animation-delay: 0.1s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* Persönlicher Einstieg: Piotr steht zwischen den beiden Bereichen.
   Schmal: Foto oben, darunter die beiden Karten. Ab 640px stehen die Karten nebeneinander,
   ab 1180px links und rechts vom Foto auf einer gemeinsamen hellen Fläche. */
.stage { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "person" "web" "home"; margin-top: clamp(28px, 5vw, 52px); }
.stage::before { content: ""; grid-area: person; border: 1px solid var(--line); border-radius: var(--radius-l); background: radial-gradient(60% 75% at 50% 100%, rgba(20, 163, 163, 0.16), transparent 70%), linear-gradient(180deg, #fff, var(--surface)); }
.stage-person { grid-area: person; align-self: end; justify-self: center; width: min(100%, 560px); margin: 0; padding: clamp(20px, 5vw, 40px) clamp(8px, 2vw, 16px) 0; }
.stage-person img { display: block; width: 100%; height: auto; }
.choice { display: flex; flex-direction: column; margin-top: 16px; padding: clamp(22px, 3vw, 30px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: 0 1px 2px rgba(19, 34, 63, 0.06), 0 24px 44px -32px rgba(19, 34, 63, 0.45); }
.choice-web { grid-area: web; }
.choice-home { grid-area: home; }
.choice h2 { font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem); font-weight: 700; line-height: 1.1; letter-spacing: 0.01em; text-transform: uppercase; color: var(--navy); }
.choice h2 span { display: block; margin-top: 6px; font-size: 0.62em; font-weight: 600; letter-spacing: 0.08em; }
.choice h2::after { content: ""; display: block; width: 44px; height: 3px; margin-top: 16px; border-radius: 3px; background: var(--teal); }
.choice-home h2::after { background: #ef8f2f; }
.choice p { margin: 16px 0 24px; font-size: 1.0625rem; line-height: 1.5; color: var(--muted); }
.choice .btn { align-self: stretch; border-color: #0e8f8f; padding-inline: 0.5em; text-align: center; }
.choice .btn:focus-visible { outline-color: var(--navy); }
@media (min-width: 640px) {
  .stage { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "person person" "web home"; column-gap: 16px; }
}
@media (min-width: 1180px) {
  .stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr); grid-template-areas: "web person home"; column-gap: 0; }
  .stage::before { grid-area: 1 / 1 / -1 / -1; }
  .stage-person { width: 100%; padding-inline: 12px; }
  .choice { align-self: center; margin: 32px 0 32px 32px; }
  .choice-home { margin: 32px 32px 32px 0; }
}

/* Die beiden Bereiche: zwei gleich große dunkle Hero-Flächen, Text links, Foto rechts. Sie ragen in die Einleitung hinein. */
.areas { position: relative; z-index: 1; margin-top: calc(-1 * clamp(72px, 9vw, 120px)); padding-bottom: clamp(56px, 7vw, 104px); }
.areas-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.panel { position: relative; isolation: isolate; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius-l); background: #0e1a30; color: #eef2f8; box-shadow: 0 1px 2px rgba(19, 34, 63, 0.08), 0 40px 70px -40px rgba(19, 34, 63, 0.7); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); animation: rise 0.9s var(--ease) 0.2s both; scroll-margin-top: 96px; }
.panel:nth-child(2) { animation-delay: 0.28s; }
@media (hover: hover) { .panel:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(19, 34, 63, 0.1), 0 50px 80px -42px rgba(19, 34, 63, 0.8); } }
.panel-photo { position: relative; overflow: hidden; aspect-ratio: 16 / 10; }
.panel-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #0e1a30 0%, rgba(14, 26, 48, 0.5) 10%, rgba(14, 26, 48, 0) 30%); }
.panel-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 54% 50%; transition: transform 1.1s var(--ease); }
.panel-home .panel-photo img { object-position: 96% 50%; }
@media (hover: hover) { .panel:hover .panel-photo img { transform: scale(1.035); } }
.panel::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09); }
.panel-body { display: flex; flex-direction: column; flex: 1; padding: clamp(8px, 1vw, 12px) clamp(24px, 3.2vw, 48px) clamp(24px, 3.2vw, 44px); }
.panel-label { display: inline-flex; flex-direction: column; gap: 12px; align-self: flex-start; font-size: 0.9375rem; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: #e3e9f1; }
.panel-label::after { content: ""; width: 44px; height: 3px; border-radius: 3px; background: #2cc4c4; }
.panel-home .panel-label::after { background: #ef8f2f; }
.panel h2 { margin-top: 22px; color: #fff; font-size: clamp(1.875rem, 1.1rem + 2.1vw, 3rem); line-height: 1.08; letter-spacing: -0.025em; }
.panel h2 em { display: block; font-style: normal; color: #4fd4d8; }
.panel-text { margin-top: 18px; max-width: 42ch; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); line-height: 1.5; color: #e3e9f1; }
.points { list-style: none; margin: 26px 0 30px; padding: 0; display: grid; gap: 16px; }
.points li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; align-items: center; font-size: 1rem; line-height: 1.4; color: #dfe6ee; }
.points b { display: block; font-size: 1.0625rem; font-weight: 600; color: #fff; }
.pt-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(44, 196, 196, 0.14); color: #6fdcdc; box-shadow: inset 0 0 0 1px rgba(111, 220, 220, 0.3); }
.pt-icon svg { width: 24px; height: 24px; }
.panel-home .points li:first-child .pt-icon { background: rgba(239, 143, 47, 0.16); color: #f6b46a; box-shadow: inset 0 0 0 1px rgba(246, 180, 106, 0.35); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6em; align-self: flex-start; margin-top: auto; min-height: 54px; padding: 0.8em 1.7em; border-radius: 14px; border: 1px solid #2cc4c4; background: #2cc4c4; color: #06222b; font-weight: 700; font-size: 1.0625rem; line-height: 1.2; text-decoration: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 14px 26px -16px rgba(44, 196, 196, 0.7); transition: transform 0.25s var(--ease), background-color 0.25s, border-color 0.25s, box-shadow 0.25s; }
.btn:hover { background: #7fe3e3; border-color: #7fe3e3; color: #06222b; transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.btn .arr { display: inline-block; transition: transform 0.25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

@media (max-width: 1180px) { .areas-grid { grid-template-columns: 1fr; } }
/* Eine Spalte mit viel Breite: die Motive sind Querformate und werden als breites Band über dem Text gezeigt */
@media (min-width: 721px) and (max-width: 1180px) {
  .panel-photo { aspect-ratio: 12 / 5; }
  .panel-photo img { object-position: 59% 50%; }
  .panel-home .panel-photo img { object-position: 100% 50%; }
}
@media (max-width: 480px) { .btn { align-self: stretch; } }

/* Abschluss */
.site-footer { background: var(--navy); color: #eef2f8; font-size: 1rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-block: clamp(44px, 6vw, 72px) 36px; }
.site-footer .wordmark { color: #fff; }
.site-footer .wordmark-name span { color: #5fd0d0; }
.footer-claim { font-size: 1.375rem; font-weight: 500; line-height: 1.25; letter-spacing: -0.01em; color: #fff; margin: 18px 0 8px; }
.site-footer h2 { color: #5fd0d0; font-size: 0.9375rem; font-weight: 600; line-height: 1; letter-spacing: 0.16em; text-transform: uppercase; margin: 6px 0 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 36px; color: #f4f7fb; text-decoration: none; }
.site-footer li a:hover { color: #5fd0d0; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-block: 20px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .panel:hover, .panel:hover .panel-photo img, .btn:hover, .btn:hover .arr { transform: none; }
}
