/* ==========================================================================
   IQ Apps UG (haftungsbeschränkt) i.G. — Corporate-Website
   Schlankes, statisches Stylesheet. Kein Framework, kein Build-Schritt.
   ========================================================================== */

:root {
  /* Basis-Farbwelt (abgeleitet vom Logo) */
  --bg-base: #050b14;
  --bg-elevated: #0a1628;
  --bg-card: #0d1c30;
  --border-subtle: rgba(255, 255, 255, 0.09);

  /* Akzentfarben (Cyan → Blau → Violett, wie im Logo-Gradient) */
  --accent-cyan: #2fe5d9;
  --accent-blue: #4a9eff;
  --accent-violet: #6b5fff;

  /* Text */
  --text-primary: #f4f7fb;
  --text-secondary: #aab6c9;
  --text-muted: #7c8aa0;

  --max-width: 46rem;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg-base);
  background-image:
    radial-gradient(50rem 30rem at 85% -10%, rgba(47, 229, 217, 0.14), transparent 60%),
    radial-gradient(40rem 26rem at -10% 15%, rgba(107, 95, 255, 0.16), transparent 60%),
    radial-gradient(38rem 24rem at 100% 100%, rgba(74, 158, 255, 0.10), transparent 60%);
  color: var(--text-primary);
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent-cyan);
  text-decoration: underline;
  text-decoration-color: rgba(47, 229, 217, 0.4);
  text-underline-offset: 0.15em;
}

a:hover,
a:focus-visible {
  color: #7ff3e9;
  text-decoration-color: currentColor;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--bg-elevated);
  color: var(--text-primary);
  padding: 0.6em 1em;
  z-index: 100;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Layout-Shell ---------- */

.site-header {
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  max-width: 64rem;
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  height: 42px;
  width: auto;
  display: block;
  border-radius: 6px;
}

.brand-name {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.3rem 0.1rem;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--text-primary);
}

.main-nav a[aria-current="page"] {
  color: var(--text-primary);
  border-bottom-color: var(--accent-cyan);
}

main {
  flex: 1;
  width: 100%;
}

/* Startseite: Inhalt in der verfügbaren Höhe zentrieren (Visitenkarte, kein
   Scrollen auf typischen Bildschirmen) */
main.home-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.site-footer {
  border-top: 1px solid var(--border-subtle);
  margin-top: 3rem;
}

.footer-inner {
  max-width: 64rem;
  margin: 0 auto;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-inner nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.1rem;
  margin: 0;
  padding: 0;
}

.footer-inner a {
  color: var(--text-muted);
}

.footer-inner a:hover,
.footer-inner a:focus-visible {
  color: var(--accent-cyan);
}

/* ---------- Startseite / Hero ---------- */

.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(1.5rem, 5vh, 3rem) 1.5rem;
  text-align: center;
}

.hero img {
  max-width: min(300px, 80%);
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin-bottom: clamp(1.25rem, 4vh, 2rem);
}

.hero h1 {
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  line-height: 1.35;
  margin: 0 0 1.6rem;
  font-weight: 600;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--accent-cyan), var(--accent-blue));
  color: #051019;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.98rem;
}

.button:hover,
.button:focus-visible {
  color: #051019;
  filter: brightness(1.08);
}

/* ---------- Content-Seiten (Impressum, Datenschutz, Kontakt) ---------- */

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 4rem) 1.5rem 4rem;
}

.page h1 {
  font-size: clamp(1.5rem, 3.6vw, 1.9rem);
  margin: 0 0 0.4rem;
}

.page .lead {
  color: var(--text-secondary);
  margin: 0 0 2.2rem;
}

.page section {
  margin-bottom: 2.1rem;
}

.page h2 {
  font-size: 1.05rem;
  color: var(--text-primary);
  border-left: 3px solid var(--accent-blue);
  padding-left: 0.7rem;
  margin: 0 0 0.6rem;
}

.page p {
  margin: 0 0 0.9rem;
  color: var(--text-secondary);
}

.page address {
  font-style: normal;
  color: var(--text-secondary);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
}

.note {
  font-size: 0.88rem;
  color: var(--text-muted);
  border-top: 1px dashed var(--border-subtle);
  padding-top: 1rem;
  margin-top: 1.4rem;
}

.contact-block {
  text-align: center;
  padding: 2.5rem 1.6rem;
}

.contact-block .button {
  margin-top: 0.6rem;
}

/* ---------- Mobile ---------- */

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 1rem 1.25rem;
  }

  .main-nav ul {
    justify-content: center;
    gap: 0.5rem 1rem;
  }

  .footer-inner {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .footer-inner nav ul {
    justify-content: center;
  }
}

@media (max-width: 360px) {
  .main-nav ul {
    gap: 0.4rem 0.7rem;
  }

  .main-nav a {
    font-size: 0.9rem;
  }
}
