/* Firmengründung Zypern (/firmengruendung-zypern/) – früher die Onepage „Zypern-Start“,
   jetzt im Privé-Design: dunkle Bühne, Petrol-Akzent, Serifen-Headlines, ruhige Motion. */

section[id][class*="company-"] { scroll-margin-top: 120px; }  /* Header + Abschnitts-Navigation */
[class*="company-"] h2 { hyphens: manual; -webkit-hyphens: manual; }  /* keine Trennung wie „Fir-ma“ */

/* ---------- Hero ---------- */
.company-hero { min-height: min(92vh, 900px); }
.company-hero .wrap { padding-top: 120px; }  /* langer Text (PL) rutscht nie unter den Header */
.company-hero .hero-media img { object-position: 70% 40%; }
.company-hero::before { background: linear-gradient(90deg, rgba(14,14,14,.9) 0%, rgba(14,14,14,.62) 42%, rgba(14,14,14,.12) 78%); }
.company-hero h1 { max-width: 920px; font-size: clamp(40px, 5.2vw, 72px); }
.company-hero .lead { max-width: 660px; }
.hero .company-mark { width: 200px; height: auto; object-fit: contain; opacity: .9; margin-bottom: 30px; }
.company-hero .actions { align-items: center; gap: 18px 30px; }

/* ---------- Abschnitts-Navigation (bleibt oben stehen) ---------- */
.company-subnav { position: sticky; top: 0; z-index: 40; background: rgba(14,14,14,.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--outline); transition: top .45s cubic-bezier(.2,.7,.2,1); }
body:has(.header:not(.hide)) .company-subnav { top: 78px; }
.company-subnav .wrap { display: flex; align-items: center; gap: clamp(22px, 3.4vw, 48px); height: 58px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.company-subnav .wrap::-webkit-scrollbar { display: none; }
.company-subnav a { position: relative; flex: none; padding: 10px 0; font: 700 12px/1 var(--font-text); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); transition: color .2s; }
.company-subnav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: #7fb3b9; transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.company-subnav a:hover, .company-subnav a.on { color: var(--text); }
.company-subnav a.on::after { transform: scaleX(1); }
.company-subnav a:last-child { margin-left: auto; color: #7fb3b9; }
.company-subnav a:focus-visible { outline: 2px solid #7fb3b9; outline-offset: 4px; border-radius: 4px; }

.company-services .section-head .lead, .company-why .section-head .lead { margin: 0; max-width: 540px; }

/* ---------- Leistungen ---------- */
.svc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 24px); }
.svc { display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 2.4vw, 32px); border: 1px solid var(--outline); border-radius: var(--radius-lg); background: radial-gradient(120% 90% at 0% 0%, rgba(21,82,89,.24), transparent 60%), var(--surface); }
.svc.reveal { transition: opacity 1s ease var(--d, 0s), transform 1s ease var(--d, 0s), border-color .3s; }
.svc:hover { border-color: rgba(127,179,185,.5); }
.svc-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--petrol); color: #fff; margin-bottom: 10px; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.svc:hover .svc-icon { transform: translateY(-3px) rotate(-4deg); }
.svc-icon svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.svc h3 { font-size: clamp(24px, 1.8vw, 27px); }
.svc p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

/* ---------- Warum Zypern ---------- */
.company-why { background: linear-gradient(180deg, transparent, rgba(21,82,89,.1) 50%, transparent); }
.reasons { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); }
.reason { position: relative; padding-top: 28px; border-top: 1px solid var(--outline); }
.reason::before { content: ""; position: absolute; left: 0; top: -1px; width: 0; height: 1px; background: #7fb3b9; transition: width 1.2s cubic-bezier(.2,.7,.2,1) calc(var(--d, 0s) + .3s); }
.reason.in::before { width: 72px; }
.reason .num { display: block; font-family: var(--font-display); font-weight: 300; font-size: clamp(56px, 6vw, 88px); line-height: 1; color: #7fb3b9; font-variant-numeric: lining-nums; }
.reason h3 { margin: 20px 0 12px; }
.reason p { margin: 0; color: var(--muted); }

/* ---------- Ablauf ---------- */
.process-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.process-photo { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.process-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 56% 50%; }
.process-photo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); pointer-events: none; }
.process-photo.reveal { clip-path: inset(0 0 100% 0 round var(--radius-lg)); transition: clip-path 1.3s cubic-bezier(.7,0,.2,1), opacity 1s, transform 1s; }
.process-photo.reveal.in { clip-path: inset(0 0 0 0 round var(--radius-lg)); }
.company-process .section-head { margin-bottom: 22px; }
.timeline { list-style: none; margin: 40px 0 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 34px 46px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 5px; top: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--bg); border: 2px solid #7fb3b9; }
.timeline li::after { content: ""; position: absolute; left: 11px; top: 22px; bottom: 6px; width: 1px; background: linear-gradient(180deg, rgba(127,179,185,.6), var(--outline)); }
.timeline li:last-child::after { display: none; }
.timeline .eyebrow { color: #7fb3b9; }
.timeline h3 { margin: 12px 0 8px; }
.timeline p { margin: 0; color: var(--muted); }

/* ---------- FAQ (Akkordeon mit <details>) ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-intro .lead { margin-bottom: 26px; }
.faq-list { border-top: 1px solid var(--outline); }
.faq { border-bottom: 1px solid var(--outline); interpolate-size: allow-keywords; }
.faq summary { list-style: none; display: flex; align-items: center; gap: 18px; padding: 24px 0; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { outline: 2px solid #7fb3b9; outline-offset: 4px; border-radius: 8px; }
.faq-n { flex: none; width: 30px; font: 700 12px/1 var(--font-text); letter-spacing: .16em; color: #7fb3b9; }
.faq-q { flex: 1; min-width: 0; font-family: var(--font-display); font-size: clamp(21px, 1.9vw, 27px); line-height: 1.25; color: #e6e7ea; transition: color .2s; }
.faq summary:hover .faq-q, .faq[open] .faq-q { color: #fff; }
.faq-icon { flex: none; position: relative; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.24); transition: background .3s, border-color .3s; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.faq summary:hover .faq-icon { border-color: #7fb3b9; }
.faq[open] .faq-icon { background: var(--petrol); border-color: var(--petrol); }
.faq[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-a { padding: 0 56px 28px 48px; }
.faq-a p { margin: 0; color: #c9ccd2; max-width: 680px; }
.faq[open] .faq-a { animation: faq-in .5s cubic-bezier(.2,.7,.2,1) both; }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
/* Höhe weich animieren, wo der Browser es kann (Chrome 131+) */
.faq::details-content { block-size: 0; overflow-y: clip; transition: block-size .45s cubic-bezier(.2,.7,.2,1), content-visibility .45s allow-discrete; }
.faq[open]::details-content { block-size: auto; }

/* ---------- Kontakt + Formular ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 580px); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-boxes { list-style: none; margin: 34px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.contact-boxes li { display: flex; align-items: flex-start; gap: 18px; padding: 20px 22px; border: 1px solid var(--outline); border-radius: var(--radius); background: var(--surface); }
.contact-boxes li > div { min-width: 0; }
.contact-boxes strong { display: block; font-size: 16px; }
.contact-boxes li > div > span:not(.sr-only) { display: block; color: var(--muted); font-size: 14px; }
.contact-boxes a, .contact-boxes address { display: inline-block; margin-top: 8px; font-style: normal; color: var(--text); border-bottom: 1px solid var(--outline); padding-bottom: 2px; overflow-wrap: anywhere; transition: border-color .2s, color .2s; }
.contact-boxes address { border-bottom: 0; }
.contact-boxes a:hover { color: #fff; border-color: #7fb3b9; }

.company-form { gap: 16px; padding: clamp(22px, 3vw, 36px); background: radial-gradient(120% 70% at 100% 0%, rgba(21,82,89,.3), transparent 60%), var(--surface); }
.company-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fld { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.form .fld > label, .interest-set legend { font-size: 13px; letter-spacing: .04em; color: var(--muted); }
.company-form textarea.field { min-height: 110px; }
.tel-group { display: flex; gap: 8px; }
.tel-group > .field { flex: 1; min-width: 0; }
.tel-cc { position: relative; flex: 0 0 118px; }
.tel-cc select { width: 100%; }
.tel-cc select option, .tel-cc select optgroup { color: var(--text); background: var(--surface); }
.tel-cc-face { display: none; }
.tel-cc.js select { color: transparent; }
.tel-cc.js .tel-cc-face { position: absolute; left: 15px; top: 0; bottom: 0; display: flex; align-items: center; gap: 8px; pointer-events: none; font-size: 15px; color: var(--text); }
.tel-cc-face small { font: 700 10px/1 var(--font-text); letter-spacing: .14em; color: var(--muted); }
.interest-set { border: 0; margin: 4px 0 0; padding: 0; min-width: 0; }
.interest-set legend { padding: 0; margin-bottom: 10px; }
.interest-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.form .chip-check { display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 8px 16px 8px 12px; border-radius: 999px; border: 1px solid var(--outline); background: var(--bg-2); color: var(--text); font-size: 14px; line-height: 1.3; cursor: pointer; transition: border-color .2s, background .2s; }
.chip-check:hover { border-color: rgba(127,179,185,.6); }
.chip-check input { appearance: none; -webkit-appearance: none; flex: none; width: 18px; height: 18px; margin: 0; border-radius: 5px; border: 1.5px solid var(--faint); display: grid; place-items: center; cursor: pointer; transition: background .2s, border-color .2s; }
.chip-check input::after { content: ""; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform .2s cubic-bezier(.2,.7,.2,1); }
.chip-check input:checked { background: var(--petrol-2); border-color: var(--petrol-2); }
.chip-check input:checked::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.chip-check:has(input:checked) { border-color: var(--petrol-2); background: var(--petrol-soft); }
.chip-check input:focus-visible { outline: 2px solid #7fb3b9; outline-offset: 3px; }
.company-form .check { margin-top: 4px; }
.company-form .btn { margin-top: 6px; }
.form-note { margin: 0; font-size: 13px; text-align: center; }
.company-form .field[aria-invalid="true"] { border-color: #fca5a5; }

/* ---------- Danke-Seite ---------- */
.company-thanks { display: flex; flex-direction: column; max-width: 680px; min-height: 72vh; margin: 0 auto; padding: 150px 20px 80px; }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1100px) {

  .process-grid, .faq-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .process-photo { aspect-ratio: 3 / 2; max-width: 760px; }
}
@media (max-width: 760px) {
  .company-hero { min-height: 88svh; }
  .hero .company-mark { width: 150px; margin-bottom: 22px; }
  .company-hero h1 { hyphens: manual; -webkit-hyphens: manual; }
  .company-hero .lead { font-size: 17px; }
  .company-hero .btn { width: 100%; height: auto; min-height: 52px; padding: 14px 20px; white-space: normal; text-align: center; line-height: 1.4; letter-spacing: .14em; }
  .company-subnav .wrap { height: 52px; gap: 20px; }
  .company-subnav a { font-size: 11px; letter-spacing: .14em; }
  .company-subnav a:last-child { margin-left: 0; }
  .svc-grid, .reasons { grid-template-columns: 1fr; }
  .reasons { gap: 36px; }
  .faq summary { gap: 12px; padding: 20px 0; }
  .faq-n { width: 24px; }
  .faq-a { padding: 0 0 24px 36px; }
  .faq-icon { width: 34px; height: 34px; }
  .company-form .row2 { grid-template-columns: 1fr; }
  .company-form .field { font-size: 16px; }  /* ≥ 16 px: kein Auto-Zoom auf dem iPhone */
  .contact-boxes li { padding: 16px 18px; gap: 14px; }
  .company-thanks { padding-top: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  .process-photo.reveal { clip-path: none; }
  .company-subnav { transition: none; }
}
