/* styles.css */
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;line-height:1.6;background:#0a0a0a;color:#f2f2f2;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
.container{max-width:980px;margin:0 auto;padding:24px}
header{border-bottom:1px solid #222;background:#0f0f0f;padding:14px 0;}
.nav{display:flex;align-items:center;justify-content:center;gap:20px;padding:14px 0}
.brand{font-weight:700;letter-spacing:.2px}
a{color:#f2f2f2;text-underline-offset:3px}
a:hover{opacity:.85}
header nav a{position:relative;font-weight:500;padding:5px 5px;border-radius:8px;transition:color .2s ease, background-color .2s ease;text-decoration:none}
header nav a[aria-current="page"]{color:#fff;font-weight:600}
/* modern underline indicator */
header nav a::after{content:"";position:absolute;left:6px;right:6px;bottom:-6px;height:2px;background:#fff;opacity:.0;transform:scaleX(0);transform-origin:left;transition:transform .35s ease, opacity .35s ease}
header nav a:hover::after, header nav a:focus-visible::after{opacity:.6;transform:scaleX(1)}
header nav a[aria-current="page"]::after{opacity:.9;transform:scaleX(1)}
main{padding:32px 0}
h1{font-size:clamp(30px,4.6vw,40px);line-height:1.15;margin:0 0 10px}
h2{font-size:clamp(18px,3vw,22px);line-height:1.35;margin:28px 0 8px}
.card>h2:first-child{margin-top:0}
h3{font-size:clamp(16px,2.4vw,20px);line-height:1.35;margin:18px 0 6px}
.card>h3:first-child{margin-top:0}
p{margin:0 0 12px}
/* Grid wie columns: kompakt */
.grid{
  display:grid;
  grid-template-columns:1fr;
  gap:8px;                 /* statt 16px */
}
@media (min-width:900px){
  .grid{ grid-template-columns:1fr 1fr; }
}

/* Karten im Grid ohne Zusatz-Margins (Gap steuert den Abstand) */
.grid .card{ margin:0; }

/* Letztes Element in Card bündig unten */
.grid .card > :last-child{ margin-bottom:0; }
.lead{color:#b9b9b9;font-size:1.1rem;max-width:88ch}
.card{background:#0f0f0f;border:1px solid #222;border-radius:16px;padding:18px;margin:14px 0}
.columns{display:grid;grid-template-columns:1fr;gap:8px}
@media(min-width:900px){.columns{grid-template-columns:1fr 1fr}}
.cta{display:flex;gap:12px;flex-wrap:wrap;margin-top:10px}
.btn{display:inline-block;border:1px solid #f2f2f2;padding:10px 14px;border-radius:12px;text-decoration:none;transition:background-color .2s ease,border-color .2s ease}
.btn:hover{border-color:#fff;background:rgba(255,255,255,.08)}
.muted{color:#b9b9b9;font-size:.95rem}
footer{border-top:1px solid #222;padding:14px 0;color:#b9b9b9;font-size:.95rem}
/* feature lists */
.feature-list{list-style:none;margin:4px 0 0;padding:0;display:grid;gap:4px}
.feature-list li{position:relative;padding-left:24px}
.feature-list li::before{content:"\002713";position:absolute;left:0;top:0}
/* hero – responsive grid to avoid crushing on iOS/small widths */
.hero{
  position:relative;
  display:grid;
  grid-template-columns:128px 1fr; /* Icon + Text */
  align-items:start;
  gap:20px;
  margin:6px 0 14px;
  overflow:hidden; /* prevents canvas overflow */
}

.hero-full {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
}

.hero-icon{
  width:clamp(72px,12vw,128px);
  height:clamp(72px,12vw,128px);
  border-radius:16px;
  object-fit:contain;
}

.hero-copy h1{ margin:0 0 8px; word-break:break-word; }

/* Small screens: stack hero vertically and center */
@media (max-width:640px){
  .hero{
    grid-template-columns:1fr;
    text-align:left; /* statt center */
  }
  .hero-icon{
    display: none;  }
  .cta{ justify-content:flex-start; } /* Buttons linksbündig */
}

/* Very narrow: shrink type slightly */
@media (max-width:380px){
  .hero-copy h1{ font-size:18px; }
  .lead{ font-size:13.5px; }
}
/* Flow lines */
.hero, header{position:relative}
.flowlines{position:absolute;inset:0;pointer-events:none;z-index:0;opacity:.25}
.hero>*:not(.flowlines), header>*:not(.flowlines){position:relative;z-index:1}
/* Button sheen 2.0 */
.btn{position:relative;overflow:hidden}
.btn::after{content:"";position:absolute;top:0;left:-140%;width:60%;height:100%;background:linear-gradient(120deg, transparent, rgba(255,255,255,.22), transparent);transform:skewX(-20deg)}
.btn:hover::after{animation:btn-sheen .6s ease forwards}
.btn.auto-sheen::after{animation:btn-sheen .6s ease forwards}
@keyframes btn-sheen{to{left:140%}}
/* Feature list reveal */
.feature-list.reveal li{opacity:0;transform:translateY(4px) scale(.98);transition:opacity .35s ease, transform .35s ease}
.feature-list.reveal li.in{opacity:1;transform:none}
/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .flowlines{display:none}
  .btn::after{display:none}
  .feature-list.reveal li{opacity:1;transform:none}
}
/* Tighten spacing between USB Status and the two-column feature cards */
section.card[aria-labelledby="features"]{
  margin-bottom: 0px; /* was 14px via .card */
}
section.card[aria-labelledby="privacy-note"]{
  margin-top: 0px; /* reduce gap above the Privacy note card */
  margin-bottom: 0px; /* was 14px via .card */
}
/* === Splash layout === */
.splash-wrap{margin:0 auto;padding:25px;min-height:85dvh;display:grid;place-items:center;}
.splash{display:grid;grid-template-columns:1fr;gap:25px;width:min(1300px,92vw);}
@media(min-width:1300px){.splash{grid-template-columns:1fr 1fr 1fr;}}

.tile{
  position:relative; overflow:hidden;
  display:flex; flex-direction:column; align-items:flex-start;
  padding:25px; border:1px solid var(--line, #222); border-radius:16px;
  background:var(--card, #0f0f0f); text-decoration:none; color:var(--fg, #f2f2f2);
  width:400px;
  height:400px;
}

.tile-icon{
  width:64px;
  height:64px;
  object-fit:contain;
  margin-bottom:8px;
}
.tile-head{font-size:clamp(22px,4vw,28px);font-weight:700;letter-spacing:.2px}
.tile-subhead{
  font-size:clamp(16px,3vw,18px);
  font-weight:500;
  color:var(--fg, #f2f2f2);
  margin-top:4px;
}
.tile-text{
  color: #b9b9b9;
  font-size:clamp(14px,2.6vw,16px);
  margin-top:auto;
  align-self:flex-start;
}

/* Sheen-Animation wie bei .btn */
.tile::after{
  content:""; position:absolute; top:0; left:-140%; width:60%; height:100%;
  background:linear-gradient(120deg, transparent, rgba(255,255,255,.22), transparent);
  transform:skewX(-20deg);
}
.tile:hover::after{ animation:btn-sheen .6s ease forwards; }
.tile.auto-sheen::after{ animation:btn-sheen .6s ease forwards; }

/* Klein: Kacheln bleiben quadratisch, nur Paddings kompakter */
@media(max-width:640px){
  .tile{ padding:20px; }
}

/* Rippon Effekt*/
.ribbon_new {
  position: absolute;
  top: 18px;
  right: -45px;
  transform: rotate(45deg);
  transform-origin: center;
  display: inline-block;
  background: red;
  color: white;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  letter-spacing: .5px;
  padding: 8px 60px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  pointer-events: none;
  text-transform: uppercase;
}
.ribbon_soon {
  position: absolute;
  top: 18px;
  right: -50px;
  transform: rotate(45deg);
  transform-origin: center;
  display: inline-block;
  background: gray;
  color: white;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  letter-spacing: .5px;
  padding: 8px 60px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  pointer-events: none;
  text-transform: uppercase;
}
