/* FreiSoft Cloud – Gestaltung
   Keine externen Schriften oder Dienste (Datenschutz): nur Systemschriften. */

:root {
  --bg: #0B1220;
  --bg2: #0F1B2D;
  --text: #E6EDF7;
  --muted: #8A9BB4;
  --a1: #22D3EE;   /* Cyan */
  --a2: #34D399;   /* Smaragd */
  --linie: rgba(148, 163, 184, .10);
  --verlauf: linear-gradient(90deg, var(--a1), var(--a2));
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { min-height: 100%; }

body {
  font-family: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(34, 211, 238, .16), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(52, 211, 153, .12), transparent 60%),
    var(--bg);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Feines Raster im Hintergrund */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--linie) 1px, transparent 1px),
    linear-gradient(90deg, var(--linie) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  pointer-events: none;
  z-index: -1;
}

a { color: var(--a1); text-decoration: none; }
a:hover { text-decoration: underline; }

.huelle { width: min(1100px, 92vw); margin: 0 auto; }

/* Kopfzeile */
header { padding: 28px 0; }
.marke { display: flex; align-items: center; gap: 12px; color: var(--text); font-weight: 700; font-size: 1.25rem; letter-spacing: .2px; }
.marke:hover { text-decoration: none; }
.marke img { width: 40px; height: 40px; }
.marke .cloud { background: var(--verlauf); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Hauptbereich */
main { flex: 1; display: flex; align-items: center; }

.held { position: relative; padding: 40px 0 80px; }

.abzeichen {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, .35);
  background: rgba(34, 211, 238, .08);
  color: var(--a1); font-size: .85rem; font-weight: 600; letter-spacing: .5px;
}
.abzeichen::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--a2); box-shadow: 0 0 0 0 rgba(52, 211, 153, .6);
  animation: puls 2s infinite;
}

h1 {
  margin: 22px 0 18px;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.05; font-weight: 800; letter-spacing: -1.5px;
}
h1 .verlauf { background: var(--verlauf); -webkit-background-clip: text; background-clip: text; color: transparent; }

.unterzeile { max-width: 620px; color: var(--muted); font-size: 1.15rem; }

/* Kurslinie im Hintergrund des Helden */
.kurs { position: absolute; right: -4%; top: 0; width: 60%; max-width: 640px; opacity: .55; z-index: -1; }
.kurs path { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: zeichnen 3.5s ease-out .3s forwards; }

/* Drei Andeutungen */
.kacheln { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 56px; }

/* Kachel-Symbole (Strichzeichnung im Farbverlauf) */
.icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(34, 211, 238, .08);
  border: 1px solid rgba(34, 211, 238, .25);
  transition: background .2s;
}
.kachel:hover .icon { background: rgba(34, 211, 238, .16); }
.icon svg {
  width: 26px; height: 26px;
  fill: none; stroke: url(#iv); stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round;
}
.kachel h2 { margin-top: 14px; }
.kachel {
  padding: 22px; border-radius: 16px;
  background: rgba(15, 27, 45, .7);
  border: 1px solid rgba(148, 163, 184, .14);
  backdrop-filter: blur(6px);
  transition: border-color .2s, transform .2s;
}
.kachel:hover { border-color: rgba(34, 211, 238, .45); transform: translateY(-3px); }
.kachel .symbol { font-family: Consolas, "Cascadia Code", monospace; font-size: 1.3rem; font-weight: 700; background: var(--verlauf); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kachel h2 { font-size: 1.1rem; margin: 8px 0 4px; }
.kachel p { color: var(--muted); font-size: .95rem; }

.bald { margin-top: 40px; color: var(--muted); font-family: Consolas, "Cascadia Code", monospace; }
.bald .cursor { display: inline-block; width: 9px; height: 1.1em; background: var(--a1); vertical-align: -3px; margin-left: 4px; animation: blinken 1s steps(1) infinite; }

/* Fußzeile */
footer { padding: 26px 0; border-top: 1px solid rgba(148, 163, 184, .12); color: var(--muted); font-size: .9rem; }
footer .huelle { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
footer nav a { color: var(--muted); margin-left: 18px; }
footer nav a:first-child { margin-left: 0; }
footer nav a:hover { color: var(--text); }

/* Rechtstexte (Impressum, Datenschutz) */
.text { padding: 20px 0 70px; max-width: 760px; }
.text h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 26px; }
.text h2 { font-size: 1.2rem; margin: 28px 0 8px; color: var(--a1); }
.text p, .text li { color: #C5D0E0; margin-bottom: 8px; }
.text ul { padding-left: 22px; }

/* Platzhalter, die vor dem Hochladen ersetzt werden müssen */
.platzhalter { background: #FACC15; color: #111; padding: 0 5px; border-radius: 4px; font-weight: 600; }

/* Animationen */
@keyframes zeichnen { to { stroke-dashoffset: 0; } }
@keyframes puls { 70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
@keyframes blinken { 50% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before { animation: none !important; transition: none !important; }
  .kurs path { stroke-dashoffset: 0; }
}

/* Tablet: 2 × 2 Kacheln */
@media (max-width: 980px) {
  .kacheln { grid-template-columns: repeat(2, 1fr); }
}

/* Handy */
@media (max-width: 760px) {
  .kacheln { grid-template-columns: 1fr; }
  .kurs { width: 100%; right: -20%; opacity: .3; }
  footer .huelle { flex-direction: column; }
}
