/* Inter (variable, lokal gehostet – SIL Open Font License, siehe assets/fonts/LICENSE-Inter.txt) */
@font-face{font-family:'Inter';font-style:normal;font-weight:100 900;font-display:swap;src:url(../fonts/inter-latin-ext-wght-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Inter';font-style:normal;font-weight:100 900;font-display:swap;src:url(../fonts/inter-latin-wght-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

/* alpha-bit – One-Pager Styles */

:root{
  --color-primary: #0087D1;
  --color-primary-dark: #00629a;
  --color-primary-light: #e6f4fb;
  --color-ink: #16232d;
  --color-ink-light: #5a6b78;
  --color-body: #3d4a54;
  --color-bg: #ffffff;
  --color-bg-alt: #f4f8fb;
  --color-section-blue-1: #eaf5fc;
  --color-section-blue-2: #d3e9f7;
  --color-border: #dfe7ec;
  --color-card-bg: #ffffff;
  --color-header-bg: rgba(255,255,255,.92);
  --color-footer-bg: #16232d;
  --color-footer-text: #c9d4db;
  --color-form-success: #0a7a3d;
  --color-form-error: #c22b2b;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(16,40,60,.08);
  --maxw: 1160px;
  --header-h: 76px;
  font-size: 16px;
  /* Tells the browser which native palette (incl. form-control text/background)
     to use for THIS theme. Without this, the page-level
     <meta name="color-scheme" content="light dark"> lets the browser fall back
     to the OS/browser dark-mode preference for things like input text color –
     independently of our own light/dark toggle. If that preference disagreed
     with the active theme, input text was rendered in a color matching the
     wrong scheme (e.g. white-on-white) and became invisible. */
  color-scheme: light;
}

:root[data-theme="dark"]{
  --color-primary: #48b0e8;
  --color-primary-dark: #79c6ef;
  --color-primary-light: #133249;
  --color-ink: #eef3f7;
  --color-ink-light: #9db0bd;
  --color-body: #b9c6d0;
  --color-bg: #0e161e;
  --color-bg-alt: #16212b;
  --color-section-blue-1: #121c26;
  --color-section-blue-2: #172531;
  --color-border: #2a3947;
  --color-card-bg: #182531;
  --color-header-bg: rgba(14,22,30,.92);
  --color-footer-bg: #0a1119;
  --color-footer-text: #a9bac5;
  --color-form-success: #4fce8c;
  --color-form-error: #f0847e;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  color-scheme: dark;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body{
  margin:0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--color-body);
  background: var(--color-bg);
  line-height: 1.6;
  transition: background-color .2s ease, color .2s ease;
}
img{ max-width:100%; display:block; }
a{ color: var(--color-primary); text-decoration: none; }
a:hover{ text-decoration: underline; }
h1,h2,h3,h4{ color: var(--color-ink); line-height:1.2; margin:0 0 .6em; font-weight:700; }
h1,h2,h3,h4,p{ overflow-wrap: break-word; }
h2{ font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
h3{ font-size: 1.3rem; }
h4{ font-size: 1.05rem; }
p{ margin:0 0 1em; }

.skip-link{
  position:absolute; left:-999px; top:0; background:var(--color-primary); color:#fff;
  padding:.6em 1em; z-index:1000; border-radius:0 0 6px 0;
}
.skip-link:focus{ left:0; }

/* Header */
.site-header{
  position: sticky; top:0; z-index: 100;
  background: var(--color-header-bg); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  padding-top: env(safe-area-inset-top, 0px);
}
.header-inner{
  max-width: var(--maxw); margin:0 auto; padding: 0 1.25rem;
  height: var(--header-h);
  display:flex; align-items:center; gap: 1.5rem;
}
.brand{ display:flex; align-items:center; flex-shrink:0; }
.brand:hover{ text-decoration:none; }
.brand-logo{ height: 42px; width:auto; display:block; }

.main-nav{ display:flex; align-items:center; gap: 1.5rem; flex:1; }
.main-nav a{ color: var(--color-ink); font-weight:500; font-size:.95rem; white-space:nowrap; }
.main-nav a:hover{ color: var(--color-primary); text-decoration:none; }

.nav-item{ position:relative; display:flex; align-items:center; gap:.1rem; }
.nav-dropdown-toggle{
  background:none; border:none; cursor:pointer; color: var(--color-ink); padding:.3rem;
  display:flex; align-items:center; border-radius:6px;
}
.nav-dropdown-toggle:hover{ color: var(--color-primary); }
.nav-dropdown-toggle svg{ transition: transform .15s ease; }
.nav-item.is-open .nav-dropdown-toggle svg{ transform: rotate(180deg); }
.nav-dropdown-menu{
  list-style:none; margin:0; padding:.4rem; position:absolute; top:100%; left:0; margin-top:.7rem;
  background: var(--color-card-bg); border:1px solid var(--color-border); border-radius: var(--radius);
  box-shadow: var(--shadow); min-width:230px; display:none; z-index:150;
}
.nav-dropdown-menu a{
  display:block; padding:.6rem .75rem; border-radius:6px; color: var(--color-ink);
  font-weight:500; font-size:.9rem; white-space:nowrap;
}
.nav-dropdown-menu a:hover{ background: var(--color-primary-light); text-decoration:none; }
.nav-item.has-dropdown:hover .nav-dropdown-menu,
.nav-item.has-dropdown.is-open .nav-dropdown-menu,
.nav-item.has-dropdown.hover-intent .nav-dropdown-menu{ display:block; }

.header-tools{ display:flex; align-items:center; gap:1rem; margin-left:auto; }

.search-box{ position:relative; }
.search-box input{
  width: 190px; padding:.5rem 2.3rem .5rem .8rem; border-radius: 999px; border:1px solid var(--color-border);
  font-family:inherit; font-size:.9rem; background: var(--color-bg-alt); color: var(--color-ink);
}
.search-box input::placeholder{ color: var(--color-body); opacity:1; }
.search-box input:focus{ outline:2px solid var(--color-primary); background: var(--color-bg); color: var(--color-ink); }
/* Hide the native browser "clear search" control – we render our own
   #searchClear button instead, since the native one overlapped #searchBtn
   and could not be clicked. */
.search-box input[type="search"]::-webkit-search-cancel-button,
.search-box input[type="search"]::-webkit-search-decoration{
  -webkit-appearance: none; appearance: none; display:none;
}
.search-box input[type="search"]::-ms-clear{ display:none; width:0; height:0; }
.search-box button{
  position:absolute; right:.4rem; top:50%; transform:translateY(-50%);
  background:none; border:none; color: var(--color-body); cursor:pointer; padding:.2rem;
  display:flex;
}
.search-box button[hidden]{ display:none; }
.search-box .search-clear-btn{ right: 2rem; }
.search-results{
  list-style:none; margin:.5rem 0 0; padding:.4rem; position:absolute; top:100%; right:0;
  width: 320px; max-width: 80vw; background: var(--color-card-bg); border:1px solid var(--color-border);
  border-radius: var(--radius); box-shadow: var(--shadow); max-height: 60vh; overflow:auto;
}
.search-results li a{
  display:block; padding:.6rem .7rem; border-radius:6px; color: var(--color-ink);
}
.search-results li a:hover{ background: var(--color-primary-light); text-decoration:none; }
.search-results li small{ display:block; color: var(--color-body); font-weight:400; margin-top:.15rem; }
.search-results .no-results{ padding:.6rem .7rem; color: var(--color-body); font-size:.9rem; }
.search-results mark{ background: #ffe58f; padding:0 .1em; }

.lang-switch{ display:flex; border:1px solid var(--color-border); border-radius:999px; overflow:hidden; }
.lang-btn{
  border:none; background: var(--color-card-bg); padding:.4rem .7rem; font-size:.8rem; font-weight:700;
  cursor:pointer; color: var(--color-body);
}
.lang-btn.is-active{ background: var(--color-primary); color:#fff; }

.theme-switch{ display:flex; border:1px solid var(--color-border); border-radius:999px; overflow:hidden; }
.theme-btn{
  border:none; background: var(--color-card-bg); padding:.5rem .6rem; font-size:.8rem;
  cursor:pointer; color: var(--color-body); display:flex; align-items:center; justify-content:center;
}
.theme-btn.is-active{ background: var(--color-primary); color:#fff; }

.nav-toggle{
  display:none; flex-direction:column; justify-content:center; gap:4px;
  width:38px; height:38px; border:1px solid var(--color-border); border-radius:8px;
  background: var(--color-card-bg); cursor:pointer;
}
.nav-toggle span{ display:block; width:18px; height:2px; background: var(--color-ink); margin:0 auto; }

/* Hero */
.hero{
  position:relative; min-height: min(78vh, 640px); display:flex; align-items:center;
  color:#fff; overflow:hidden;
}
.hero-media{
  position:absolute; inset:0;
  background: linear-gradient(120deg, rgba(2,16,28,.35), rgba(0,98,154,.25)),
    url('../img/hero-bg.jpg') center/cover no-repeat;
}
.hero-content{ position:relative; z-index:1; max-width: var(--maxw); margin:0 auto; padding: 3rem 1.25rem; }
.hero-logo{ height: 88px; width:auto; margin-bottom: 1.8rem; filter: drop-shadow(0 6px 18px rgba(0,0,0,.35)); }
.hero-kicker{ text-transform:uppercase; letter-spacing:.14em; font-size:.95rem; color:#bfe4fb; font-weight:600; }
.hero h1{ color:#fff; font-size: clamp(2.6rem, 5.8vw, 4.4rem); max-width: 20ch; margin-top:.4em; }
.hero-sub{ max-width: 60ch; font-size:1.35rem; color:#e6f1f8; }

.btn{
  display:inline-block; padding:.8rem 1.6rem; border-radius:999px; font-weight:600;
  cursor:pointer; border:2px solid transparent; font-size:.95rem;
}
.btn:hover{ text-decoration:none; }
.btn-primary{ background: var(--color-primary); color:#fff; }
.btn-primary:hover{ background: var(--color-primary-dark); }
.btn-ghost{ border-color: rgba(255,255,255,.7); color:#fff; }
.btn-ghost:hover{ background: rgba(255,255,255,.12); }

/* Sections */
.section{ padding: clamp(3rem, 6vw, 5rem) 0; background: var(--color-section-blue-1); }
.section.alt{ background: var(--color-section-blue-2); }
.section-inner{ max-width: var(--maxw); margin:0 auto; padding: 0 1.25rem; }
.lead{ font-size:1.15rem; color: var(--color-ink); max-width:70ch; }

.two-col{ display:grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items:start; }

.fact-list{ list-style:none; margin:0; padding:0; display:grid; gap:1rem; }
.fact-list li{
  background: var(--color-card-bg); border:1px solid var(--color-border); border-radius: var(--radius);
  padding:1rem 1.2rem; display:flex; align-items:center; gap:1rem;
}
.fact-icon{
  flex-shrink:0; width:44px; height:44px; border-radius:50%;
  background: var(--color-primary-light); color: var(--color-primary);
  display:flex; align-items:center; justify-content:center;
}
.fact-icon svg{ width:24px; height:24px; }
.fact-text{ display:flex; flex-direction:column; gap:.15rem; }
.fact-list strong{ color: var(--color-primary); font-size:1.4rem; line-height:1.1; }
.fact-list span{ font-size:.88rem; color: var(--color-body); }
.fact-cert img{
  flex-shrink:0; width:52px; height:auto; border-radius:6px; border:1px solid var(--color-border);
}

.card-grid{ display:grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap:1.5rem; margin-top:2rem; }
.feature-card{
  background: var(--color-card-bg); border:1px solid var(--color-border); border-radius: var(--radius);
  padding:1.4rem; box-shadow: var(--shadow);
  min-width:0; overflow-wrap: break-word;
}
.feature-card h3, .feature-card h4{ overflow-wrap: break-word; }
.section.alt .feature-card{ background: var(--color-card-bg); }

.card-icon{
  display:inline-flex; align-items:center; justify-content:center;
  width:44px; height:44px; border-radius:12px; margin-bottom: .9rem;
  background: var(--color-primary-light); color: var(--color-primary); flex-shrink:0;
}
.card-icon svg{ width:24px; height:24px; }

.box-card{
  margin-top:2rem; background: var(--color-card-bg); border:1px solid var(--color-border); border-radius: var(--radius);
  padding:1.4rem 1.6rem; box-shadow: var(--shadow);
}
.dev-outro{ margin-top:2rem; }
.content-subtitle{ margin-top:3rem; }
.box-card-title{
  display:flex; align-items:center; gap:.8rem; margin-bottom:1rem;
}
.box-card-title .card-icon{ margin-bottom:0; }
.box-card .tag-list{ margin-top:0; }

.two-col.softplc-layout{ grid-template-columns: 1fr 1.35fr; }
.product-shot{
  margin:0; border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow);
}
.product-shot .media-zoom{ width:100%; display:block; }
.product-shot img{ width:100%; height:auto; display:block; }
.product-shot-caption{
  margin:0; color:#e7eef3; background:#12212e; font-size:.85rem; font-weight:600;
  letter-spacing:.02em; padding:.7rem .9rem; text-align:center;
}

.subsection{ margin-top: 3rem; padding-top: 2.5rem; border-top:1px solid var(--color-border); }
.subsection:first-of-type{ margin-top:1.5rem; }

.check-list{ list-style:none; margin: 1.2rem 0 0; padding:0; display:grid; gap:.6rem; max-width: 62ch; }
.check-list.two-col-list{ max-width:none; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); column-gap:2rem; }
.check-list li{ position:relative; padding-left:1.6em; }
.check-list li::before{
  content:"✓"; position:absolute; left:0; color: var(--color-primary); font-weight:700;
}

.media-grid{ display:grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap:1.2rem; margin: 1.8rem 0; }
.media-grid figure{ margin:0; background:#0e1b26; border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow); }
.media-grid img{ width:100%; height: 200px; object-fit: cover; display:block; }
.media-grid figcaption{ color:#e7eef3; background:#12212e; font-size:.82rem; padding:.6rem .8rem; }

.media-zoom{
  display:block; width:100%; padding:0; margin:0; border:none; background:none; cursor: zoom-in;
  position:relative;
}
.media-zoom img{ transition: transform .25s ease; }
.media-zoom:hover img{ transform: scale(1.04); }
.media-zoom::after{
  content:""; position:absolute; top:.6rem; right:.6rem; width:30px; height:30px; border-radius:50%;
  background: rgba(2,16,28,.55);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cline x1='11' y1='8.5' x2='11' y2='13.5'/%3E%3Cline x1='8.5' y1='11' x2='13.5' y2='11'/%3E%3Cline x1='16' y1='16' x2='20.5' y2='20.5'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:center; background-size:16px;
}

/* Lightbox */
.lightbox{
  position:fixed; inset:0; z-index:1000; background: rgba(2,10,18,.9);
  display:flex; align-items:center; justify-content:center; padding: 2rem;
  padding: calc(2rem + env(safe-area-inset-top,0px)) 2rem calc(2rem + env(safe-area-inset-bottom,0px));
}
.lightbox[hidden]{ display:none; }
.lightbox-inner{ max-width: min(94vw, 1900px); max-height: 86vh; }
.lightbox-inner img{ display:block; max-width:100%; max-height:86vh; border-radius:6px; box-shadow: 0 20px 60px rgba(0,0,0,.5); margin:0 auto; }
.lightbox-close{
  position:absolute; top: max(1rem, env(safe-area-inset-top,0px)); right:1.2rem; width:44px; height:44px; border-radius:50%;
  background: rgba(255,255,255,.12); color:#fff; border:none; font-size:1.8rem; line-height:1;
  cursor:pointer; display:flex; align-items:center; justify-content:center;
}
.lightbox-close:hover{ background: rgba(255,255,255,.22); }

.tag-list{ display:flex; flex-wrap:wrap; gap:.6rem; margin-top:1.5rem; }
.tag-list span{
  background: var(--color-primary-light); color: var(--color-primary-dark);
  border-radius:999px; padding:.4rem .9rem; font-size:.85rem; font-weight:500;
}

.logo-row{
  display:flex; flex-wrap:wrap; align-items:center; gap: 3rem; margin-top:2rem;
  justify-content:flex-start;
}
.logo-row a{ display:block; line-height:0; transition: opacity .15s ease; }
.logo-row a:hover{ opacity:.75; }
.logo-row img{ max-height: 64px; width:auto; filter: grayscale(15%); }

.network-grid{
  display:grid; grid-template-columns: repeat(3, 1fr); gap:2.5rem; margin-top:2rem;
}
.network-item{ text-align:center; display:flex; flex-direction:column; align-items:center; }
.network-item a{
  display:flex; align-items:center; justify-content:center; line-height:0; transition: opacity .15s ease;
  margin-bottom:1.2rem; background:#fff; border-radius: var(--radius); padding:.9rem 1.4rem;
  border:1px solid var(--color-border);
}
.network-item a:hover{ opacity:.8; }
.network-item img{ max-height: 64px; width:auto; filter: grayscale(15%); }
.network-item p{ font-size:.95rem; color: var(--color-ink-light); max-width: 32ch; margin:0; }
@media (max-width: 780px){
  .network-grid{ grid-template-columns: 1fr; gap:2rem; }
}

.page-title{ font-size: clamp(1.8rem, 3vw, 2.6rem); }
.page-subtitle{ font-size: clamp(1.05rem, 1.6vw, 1.35rem); font-weight:500; color: var(--color-ink-light); margin: -.4rem 0 1.4rem; }

.project-filters{ display:flex; flex-wrap:wrap; gap:.6rem; margin-top:1.8rem; }
.filter-chip{
  border:1px solid var(--color-border); background: var(--color-card-bg); color: var(--color-body);
  border-radius:999px; padding:.5rem 1.1rem; font-size:.9rem; font-weight:600; cursor:pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.filter-chip:hover{ border-color: var(--color-primary); color: var(--color-primary); }
.filter-chip.is-active{ background: var(--color-primary); border-color: var(--color-primary); color:#fff; }

/* auto-fill (not auto-fit): keeps card width consistent regardless of how many
   results the filter leaves. auto-fit stretches existing cards to fill the row
   when few match, which – combined with the 16:9 image area – made a single
   filtered result balloon into one huge, oversized card. auto-fill instead
   reserves the same column layout and leaves any extra columns empty, so a
   lone card keeps a normal card width and a normal-sized image. */
.project-grid{ display:grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap:1.8rem; margin-top:1.6rem; }
.project-card{
  background: var(--color-card-bg); border:1px solid var(--color-border); border-radius: var(--radius);
  overflow:hidden; box-shadow: var(--shadow); display:flex; flex-direction:column;
}
.project-card-media{
  /* Match the 16:9 aspect ratio the project SVGs are drawn at (viewBox 1600x900),
     instead of a fixed pixel height. With a fixed height, object-fit:cover crops
     more and more aggressively as a card gets wider than it is tall – which
     happens whenever the filter leaves few cards per row (e.g. a single result
     stretches nearly full width), pushing the sides of the illustration
     (icons/labels) out of frame. Sizing by aspect ratio instead means the full
     image stays visible at any card width. */
  aspect-ratio: 16 / 9; background: var(--color-bg-alt); display:flex; align-items:center; justify-content:center; overflow:hidden;
}
.project-card-media img{ width:100%; height:100%; object-fit:contain; display:block; }
.project-card-media.is-placeholder{ color: var(--color-primary); background: var(--color-primary-light); }
.project-card-body{ padding:1.4rem 1.4rem 1.6rem; display:flex; flex-direction:column; gap:.6rem; flex:1; }
.project-card-category{
  align-self:flex-start; background: var(--color-primary-light); color: var(--color-primary-dark);
  font-size:.76rem; font-weight:700; text-transform:uppercase; letter-spacing:.04em;
  padding:.25rem .7rem; border-radius:999px;
}
.project-card-body h3{ margin:0; overflow-wrap: break-word; }
.project-card-body p{ margin:0; color: var(--color-body); font-size:.95rem; }
.project-card-body .tag-list{ margin-top:.4rem; }

.project-card-tech{ display:flex; flex-wrap:wrap; align-items:center; gap:.5rem; margin-top:.2rem; }
.project-card-tech-label{ font-size:.78rem; font-weight:700; color: var(--color-ink-light); flex-shrink:0; }
.project-card-tech-list{ display:flex; flex-wrap:wrap; gap:.4rem; }
.project-card-tech-list span{
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size:.78rem; background: var(--color-bg-alt); border:1px solid var(--color-border); color: var(--color-ink);
  padding:.2rem .6rem; border-radius:6px;
}

address{ font-style:normal; }

.contact-form{ background: var(--color-card-bg); border:1px solid var(--color-border); border-radius: var(--radius); padding:1.6rem; box-shadow: var(--shadow); }
.form-row{ margin-bottom:1rem; display:flex; flex-direction:column; gap:.35rem; }
.form-row label{ font-size:.88rem; font-weight:600; color: var(--color-ink); }
.form-row input, .form-row textarea{
  font-family:inherit; font-size:1rem; padding:.65rem .8rem; border:1px solid var(--color-border);
  border-radius:8px; resize: vertical; background: var(--color-bg-alt); color: var(--color-ink);
}
.form-row input:focus, .form-row textarea:focus{ outline:2px solid var(--color-primary); background: var(--color-card-bg); }
.form-row-checkbox label{
  display:flex; align-items:center; gap:.55rem; font-weight:500; cursor:pointer;
}
.form-row-checkbox input[type="checkbox"]{ width:auto; flex-shrink:0; accent-color: var(--color-primary); }
.hp-field{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.form-status{ margin:.9rem 0 0; font-size:.9rem; min-height:1.2em; }
.form-status.success{ color: var(--color-form-success); }
.form-status.error{ color: var(--color-form-error); }

.site-footer{ background: var(--color-footer-bg); color: var(--color-footer-text); padding: 2rem 0; padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px)); }
.footer-inner{
  max-width: var(--maxw); margin:0 auto; padding:0 1.25rem;
  display:flex; flex-wrap:wrap; justify-content:space-between; gap:1rem; font-size:.88rem;
}
.footer-nav{ display:flex; gap:1.2rem; }
.footer-nav a{ color: var(--color-footer-text); }
.footer-nav a:hover{ color:#fff; }

/* Responsive */
@media (max-width: 900px){
  .two-col{ grid-template-columns: 1fr; }
  .search-box input{ width:140px; }
}

@media (max-width: 1240px){
  .main-nav{
    position: fixed; inset: var(--header-h) 0 auto 0; background: var(--color-card-bg);
    flex-direction:column; align-items:stretch; padding:1rem 1.25rem; border-bottom:1px solid var(--color-border);
    box-shadow: var(--shadow); transform: translateY(-8px); opacity:0; pointer-events:none;
    transition: all .18s ease;
  }
  .main-nav.is-open{ transform:none; opacity:1; pointer-events:auto; }
  .nav-toggle{ display:flex; }
  .search-box{ display:none; }
  .header-tools{ gap:.6rem; }

  .nav-item{ flex-direction:column; align-items:flex-start; width:100%; }
  .nav-dropdown-toggle{ display:none; }
  .nav-dropdown-menu{
    position:static; display:block; margin:.3rem 0 0; padding:0 0 0 1rem;
    background:none; border:none; box-shadow:none; min-width:0;
  }
  .nav-dropdown-menu a{ padding:.4rem 0; font-size:.88rem; color: var(--color-body); }
}


/* --- Problem-Karten, Ablauf, Hinweise --- */
.card-link{ display:inline-block; margin-top:.4rem; font-weight:600; }
.card-link::after{ content:" \2192"; }
.check-note{ margin-top:1rem; color: var(--color-ink-light); font-style:italic; }
.flow-grid{ counter-reset: flow; }
.flow-card{ position:relative; }
.flow-num{
  display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; border-radius:50%;
  margin-bottom:.9rem; background: var(--color-primary); color:#fff; font-weight:700; font-size:1.15rem;
}
.form-row select{
  font-family:inherit; font-size:1rem; padding:.65rem .8rem; border:1px solid var(--color-border);
  border-radius:8px; background: var(--color-bg-alt); color: var(--color-ink);
}
.form-row select:focus{ outline:2px solid var(--color-primary); background: var(--color-card-bg); }
.box-card .btn{ margin-top:.6rem; }
.contact-form, .form-row{ min-width:0; }
.form-row select{ width:100%; max-width:100%; min-width:0; text-overflow:ellipsis; }
.box-card-title > span:not(.card-icon){ min-width:0; overflow-wrap:break-word; hyphens:auto; }

/* --- FAQ --- */
.faq-list{ margin-top:1.5rem; display:grid; gap:.8rem; max-width: 900px; }
.faq-item{ background: var(--color-card-bg); border:1px solid var(--color-border); border-radius: var(--radius); box-shadow: var(--shadow); }
.faq-item summary{
  cursor:pointer; list-style:none; padding:1rem 3rem 1rem 1.2rem; font-weight:600; color: var(--color-ink);
  position:relative; overflow-wrap:break-word;
}
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary::after{
  content:""; position:absolute; right:1.2rem; top:50%; width:.55rem; height:.55rem;
  border-right:2px solid var(--color-primary); border-bottom:2px solid var(--color-primary);
  transform: translateY(-70%) rotate(45deg); transition: transform .15s ease;
}
.faq-item[open] summary::after{ transform: translateY(-30%) rotate(-135deg); }
.faq-item summary:focus-visible{ outline:2px solid var(--color-primary); outline-offset:2px; border-radius: var(--radius); }
.faq-item p{ margin:0; padding:0 1.2rem 1.1rem; }

/* --- Screenshots in Funktionskacheln --- */
.card-shot{ margin:0 0 1rem; display:block; width:100%; }
.card-shot{ overflow:hidden; border-radius:6px; }
.card-shot img{ width:100%; aspect-ratio:16/10; object-fit:contain; background:var(--color-card-bg,#fff); display:block; border-radius:6px; border:1px solid var(--color-border); }
.card-shot-small img{ max-width:100%; }
.card-note{ margin-top:2rem; }
.card-grid.cols-3{ grid-template-columns: repeat(3, minmax(0,1fr)); }
@media (max-width: 960px){ .card-grid.cols-3{ grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 620px){ .card-grid.cols-3{ grid-template-columns: 1fr; } }

.faq-heading{ margin-top:2.5rem; margin-bottom:0; }

.download-card{ display:flex; flex-direction:column; align-items:flex-start; }
.download-card .download-card-title{ font-size:1.15rem; margin:0 0 .5rem; overflow-wrap:break-word; }
.download-card p{ flex:1 1 auto; }
.download-card .btn{ margin-top:1rem; }
.download-card .btn.is-pending{ opacity:.55; pointer-events:none; cursor:default; }

.form-row-privacy label{ align-items:flex-start; font-weight:400; font-size:.9rem; line-height:1.45; }
.form-row-privacy input[type="checkbox"]{ margin-top:.2rem; }
.form-row-privacy a{ text-decoration:underline; }

.form-row-altcha{ margin-top:.2rem; }
.form-row-altcha altcha-widget{ max-width:100%; display:block; }

.card-grid.cols-2{ grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (max-width: 620px){ .card-grid.cols-2{ grid-template-columns: 1fr; } }

[data-lang-block][hidden]{ display:none; }

.nowrap{ white-space:nowrap; }

/* Auf schmalen Displays dürfen no-wrap-Textteile umbrechen (sonst werden sie abgeschnitten) */
@media (max-width: 640px){
  .hero-sub .nowrap, .feature-card .nowrap{ white-space: normal; }
}
