/* ==========================================================================
   anyX-IT UG – gemeinsames Stylesheet
   Farben aus dem Logo: Lila #802082, Grau #9a9a9a
   Seitenspezifisches CSS gehört in assets/css/<seite>.css
   ========================================================================== */

/* ---------- Schrift (lokal, DSGVO-konform) ---------- */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/poppins-300.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-700.woff2") format("woff2"); }

/* ---------- Design-Tokens ---------- */
:root {
  --primary: #802082;
  --primary-dark: #651866;
  --primary-light: #f4e9f4;
  --grey: #9a9a9a;
  --dark: #232425;
  --dark-2: #323334;
  --text: #555a60;
  --muted: #8a8f95;
  --border: #e6e3e8;
  --bg: #ffffff;
  --bg-alt: #f8f6f9;
  --white: #ffffff;
  --success: #2e7d32;
  --error: #c62828;

  --font: "Poppins", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 10px;
  --radius-lg: 18px;
  --shadow: 0 6px 24px rgba(35, 36, 37, .08);
  --shadow-lg: 0 16px 40px rgba(128, 32, 130, .16);
  --container: 1200px;
  --header-h: 84px;
  --section-py: clamp(56px, 8vw, 100px);
}

/* ---------- Reset / Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4 { color: var(--dark); font-weight: 600; line-height: 1.25; margin: 0 0 .6em; overflow-wrap: break-word; hyphens: auto; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--primary); color: #fff; padding: 10px 16px; z-index: 1000; }
.skip-link:focus { left: 16px; top: 16px; color: #fff; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: var(--section-py) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--dark); color: #c9cbcf; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--primary { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: #f3e6f3; }
.section--primary h2, .section--primary h3 { color: #fff; }

.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 10px;
}
.section--dark .eyebrow, .section--primary .eyebrow { color: #e3b8e4; }
.lead { font-size: 1.12rem; }

.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 999px; border: 2px solid var(--primary);
  background: var(--primary); color: #fff; font-family: inherit; font-weight: 600; font-size: .95rem;
  cursor: pointer; transition: background .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn--outline { background: transparent; color: var(--primary); }
.btn--outline:hover { background: var(--primary); color: #fff; }
.btn--light { background: #fff; border-color: #fff; color: var(--primary); }
.btn--light:hover { background: transparent; color: #fff; border-color: #fff; }

/* ---------- Karten ---------- */
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px 28px; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.icon-badge {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
  background: var(--primary-light); color: var(--primary); margin-bottom: 20px;
}
.icon-badge svg { width: 28px; height: 28px; }

/* ---------- Topbar + Header ---------- */
.topbar { background: var(--dark); color: #c9cbcf; font-size: .85rem; }
.topbar .container { display: flex; justify-content: flex-end; gap: 24px; padding-top: 7px; padding-bottom: 7px; }
.topbar a { color: #c9cbcf; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: #fff; }
.topbar svg { width: 15px; height: 15px; }
@media (max-width: 560px) { .topbar .container { justify-content: center; gap: 16px; } }

.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96);
  backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand img { height: 56px; width: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.main-nav a {
  display: block; padding: 10px 16px; border-radius: 999px; color: var(--dark); font-weight: 500; font-size: .95rem;
}
.main-nav a:hover { color: var(--primary); background: var(--primary-light); }
.main-nav a[aria-current="page"] { color: #fff; background: var(--primary); }

.nav-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--border); border-radius: 12px;
  background: #fff; cursor: pointer; padding: 0; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--dark); position: relative; transition: transform .25s, background .25s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow); display: none;
  }
  .nav-open .main-nav { display: block; }
  .main-nav ul { flex-direction: column; padding: 12px 20px 20px; gap: 4px; }
  .main-nav a { padding: 12px 16px; border-radius: var(--radius); }
  .brand img { height: 46px; }
}

/* ---------- Seitenkopf (Unterseiten) ---------- */
.page-hero {
  position: relative; color: #fff; padding: clamp(70px, 10vw, 120px) 0 clamp(56px, 8vw, 90px);
  background: linear-gradient(120deg, rgba(35,36,37,.88) 0%, rgba(128,32,130,.78) 100%), url("../img/frankfurt-skyline.jpg") center/cover no-repeat;
}
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero p { color: #eadcea; max-width: 640px; margin: 0; font-size: 1.08rem; }
.breadcrumb { font-size: .85rem; margin-bottom: 14px; color: #e3c9e4; }
.breadcrumb a { color: #fff; }
.breadcrumb span[aria-hidden] { margin: 0 8px; opacity: .6; }

/* ---------- Fließtext (Impressum, Datenschutz) ---------- */
.prose { max-width: 820px; }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.5em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul { margin: 0 0 1.1em; }
.prose li { margin-bottom: .3em; }

/* ---------- Call-to-Action ---------- */
.cta { text-align: center; }
.cta p { max-width: 640px; margin: 0 auto 28px; }
.cta .btn + .btn { margin-left: 10px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #a9acb1; font-size: .93rem; }
.site-footer .footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 64px 0 40px; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.site-footer a { color: #c9cbcf; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-logo { background: #fff; display: inline-block; padding: 10px 14px; border-radius: var(--radius); margin-bottom: 16px; }
.footer-logo img { height: 44px; width: auto; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }
.footer-bottom ul { display: flex; gap: 20px; }
@media (max-width: 760px) { .site-footer .footer-main { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Helfer ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.img-rounded { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; object-fit: cover; }

/* Einblend-Animation (wird von main.js gesetzt; ohne JS sofort sichtbar) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}
