/* =========================================================
   Zeidler IT-Consulting (ZITCS) – Stylesheet
   Hauptfarbe: Grün (#009d00, abgeleitet von nextcloud.zeidler-it.de)
   Zweitfarbe: Charcoal (#222831)
   ========================================================= */

:root {
  /* Brand greens (von Nextcloud-Theme) */
  --green:            #009d00;
  --green-cta:        #008a00;  /* etwas dunkler für Buttons – weiße Schrift erreicht WCAG-AA (4,5:1) */
  --green-dark:       #006600;
  --green-bright:     #00c100;
  --green-light:      #e5f5e5;
  --green-light-2:    #f2faf2;

  /* Charcoal / neutrals */
  --charcoal:         #222831;
  --charcoal-2:       #2c333d;
  --charcoal-soft:    #3a4250;
  --ink:              #1c2128;
  --muted:            #5b6470;
  --line:             #e4e8ec;
  --bg:               #ffffff;
  --bg-soft:          #f6f8f9;

  /* Logo-Blau als dezenter Akzent */
  --logo-blue:        #1b3a8f;

  --radius:           14px;
  --radius-lg:        22px;
  --shadow-sm:        0 1px 3px rgba(34,40,49,.07), 0 1px 2px rgba(34,40,49,.04);
  --shadow:           0 10px 30px -12px rgba(34,40,49,.18);
  --shadow-lg:        0 30px 60px -20px rgba(34,40,49,.25);
  --maxw:             1160px;
  --ease:             cubic-bezier(.22,.61,.36,1);

  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.18; color: var(--charcoal); font-weight: 800; letter-spacing: -.02em; margin: 0 0 .5em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

.section { padding: 92px 0; }
.section--soft { background: var(--bg-soft); }
.section--alt { background:
    radial-gradient(1200px 500px at 80% -10%, var(--green-light) 0%, transparent 55%),
    var(--bg); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-dark); margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--green); border-radius: 2px; }

.section-head { max-width: 680px; margin-bottom: 54px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 700; font-size: 1rem;
  padding: .85rem 1.5rem; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--green-cta); color: #fff; box-shadow: 0 12px 24px -10px rgba(0,157,0,.6); }
.btn--primary:hover { background: var(--green-dark); box-shadow: 0 16px 30px -10px rgba(0,102,0,.55); }
.btn--ghost { background: transparent; color: var(--charcoal); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--green); color: var(--green-dark); }
.btn--light { background: #fff; color: var(--charcoal); }
.btn--light:hover { background: var(--green-light); color: var(--green-dark); }
.btn--lg { padding: 1rem 1.9rem; font-size: 1.05rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 78px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 40px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a { color: var(--charcoal); font-weight: 600; font-size: .98rem; position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--green); transition: width .25s var(--ease);
}
.nav-links a:hover { text-decoration: none; color: var(--green-dark); }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 1rem; }

/* Sprachumschalter / language switch */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; font-size: .85rem; font-weight: 700; }
.lang-switch a {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted); padding: 5px 8px; border-radius: 8px; line-height: 1;
}
.lang-switch a:hover { color: var(--green-dark); text-decoration: none; background: var(--green-light); }
.lang-switch a.active { color: var(--charcoal); background: var(--bg-soft); }
.lang-switch .sep { color: var(--line); }
.lang-switch .flag {
  height: 13px; width: auto; border-radius: 2px; display: block; flex: none;
  box-shadow: 0 0 0 1px rgba(34,40,49,.12);
}
.lang-switch a:not(.active) .flag { filter: grayscale(.35); opacity: .9; }
.lang-switch a:hover .flag { filter: none; opacity: 1; }

/* Formular-Rückmeldungen / form feedback */
.form-feedback { display: none; border-radius: 12px; padding: 14px 16px; margin-bottom: 16px; font-size: .95rem; font-weight: 600; }
.form-feedback.show { display: block; }
.form-feedback.success { background: var(--green-light); color: var(--green-dark); border: 1px solid #bfe6bf; }
.form-feedback.error { background: #fdecec; color: #b3261e; border: 1px solid #f6c9c6; }
.form.is-sending button[type="submit"] { opacity: .6; pointer-events: none; }

/* CSP-freundliche Utilities (ersetzen ehemalige Inline-Styles, ermöglichen style-src 'self') */
.eyebrow--bright { color: var(--green-bright); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.footer-bottom--bare { border-top: none; margin-top: 0; padding-top: 0; }
.legal-note { margin-top: 2.5rem; color: var(--muted); font-size: .9rem; }

/* ---------- FAQ (natives details/summary, ohne JS) ---------- */
.faq-list { max-width: 820px; margin-inline: auto; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 14px; overflow: hidden; transition: border-color .2s, box-shadow .2s;
}
.faq-item[open] { border-color: var(--green-light); box-shadow: var(--shadow-sm); }
.faq-q {
  list-style: none; cursor: pointer; padding: 20px 24px;
  font-weight: 700; font-size: 1.06rem; color: var(--charcoal);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: ""; flex: none; width: 10px; height: 10px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .25s var(--ease);
}
.faq-item[open] .faq-q { color: var(--green-dark); }
.faq-item[open] .faq-q::after { transform: rotate(-135deg); border-color: var(--green-dark); }
.faq-q:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; border-radius: var(--radius); }
.faq-answer { padding: 0 24px 22px; color: var(--muted); font-size: 1rem; }
.faq-answer p { margin: 0; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
  width: 44px; height: 44px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--charcoal); border-radius: 2px; margin: 5px auto; transition: .3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--charcoal); color: #fff; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 600px at 88% -5%, rgba(0,157,0,.42) 0%, transparent 55%),
    radial-gradient(700px 500px at 10% 110%, rgba(0,193,0,.18) 0%, transparent 55%),
    linear-gradient(160deg, #20262f 0%, #2a313c 100%);
}
.hero::after { /* circuit texture */
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: url("../img/circuit.svg");
  background-size: 760px; background-position: right -40px top -40px; background-repeat: no-repeat;
  mix-blend-mode: screen;
}
.hero .container { position: relative; z-index: 2; }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding: 104px 0 110px; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.55rem); margin-bottom: 1.1rem; }
.hero h1 .accent { color: var(--green-bright); }
.hero .lead { color: #d7dde4; font-size: 1.2rem; max-width: 560px; margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.3rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 1.6rem; color: #aeb7c2; font-size: .95rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: .5rem; }
.hero-meta svg { width: 18px; height: 18px; color: var(--green-bright); flex: none; }

.hero-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg); padding: 30px; backdrop-filter: blur(6px);
  box-shadow: var(--shadow-lg);
}
.hero-card h2 { color: #fff; font-size: 1.15rem; margin-bottom: 1.2rem; }
.hero-card ul { list-style: none; display: grid; gap: .9rem; }
.hero-card li { display: flex; gap: .75rem; align-items: flex-start; color: #e6eaef; font-size: 1rem; }
.hero-card li svg { width: 22px; height: 22px; color: var(--green-bright); flex: none; margin-top: 1px; }

/* ---------- Trust strip ---------- */
.trust { border-bottom: 1px solid var(--line); background: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 34px 0; }
.trust-item { text-align: center; }
.trust-item .num { font-size: 2rem; font-weight: 800; color: var(--green-dark); letter-spacing: -.02em; }
.trust-item .lbl { color: var(--muted); font-size: .92rem; }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow-sm);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--green-light); }
.card .ico {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: var(--green-light); color: var(--green-dark); margin-bottom: 18px;
}
.card .ico svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .98rem; margin: 0; }

/* ---------- Profile / Über mich ---------- */
.profile { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.profile-card {
  background: linear-gradient(160deg, var(--charcoal) 0%, var(--charcoal-2) 100%);
  color: #fff; border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.profile-card::after {
  content: ""; position: absolute; right: -60px; bottom: -60px; width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(0,157,0,.45), transparent 70%);
}
.profile-card .role { position: relative; z-index: 2; }
.profile-card .name { font-size: 1.8rem; font-weight: 800; color: #fff; margin-bottom: .2rem; }
.profile-card .title { color: var(--green-bright); font-weight: 700; margin-bottom: 1.4rem; }
.profile-card ul { list-style: none; display: grid; gap: .8rem; position: relative; z-index: 2; }
.profile-card li { display: flex; gap: .65rem; color: #d7dde4; font-size: .98rem; align-items: flex-start; }
.profile-card li svg { width: 20px; height: 20px; color: var(--green-bright); flex: none; margin-top: 2px; }
.profile-text h2 { margin-bottom: 1rem; }
.profile-text p { color: var(--muted); font-size: 1.05rem; }
.qualbadge {
  display: inline-flex; align-items: center; gap: .6rem; margin-top: .4rem;
  background: var(--green-light); color: var(--green-dark); font-weight: 700;
  padding: .55rem 1rem; border-radius: 999px; font-size: .95rem;
}

/* Zertifizierungs-Badges (eigener, zentrierter Streifen) */
.certs-strip { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 56px; }
.cert-badge {
  height: 156px; width: auto;
  transition: transform .25s var(--ease), filter .25s var(--ease);
  filter: drop-shadow(0 12px 24px rgba(34,40,49,.18));
}
.cert-badge:hover { transform: translateY(-6px) scale(1.04); }
@media (max-width: 520px) { .cert-badge { height: 120px; } .certs-strip { gap: 30px; } }

/* ---------- Process / Ablauf ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: step; }
.step { position: relative; padding-top: 14px; }
.step .n {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 2px solid var(--green); color: var(--green-dark);
  font-weight: 800; font-size: 1.1rem; margin-bottom: 16px;
}
.step h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.step p { color: var(--muted); font-size: .96rem; margin: 0; }
.steps.lined .step:not(:last-child)::before {
  content: ""; position: absolute; top: 37px; left: 58px; right: -13px; height: 2px;
  background: linear-gradient(90deg, var(--green) 0%, var(--line) 100%);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  color: #fff; border-radius: var(--radius-lg); padding: 54px; text-align: center;
  box-shadow: var(--shadow);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.92); max-width: 560px; margin: 0 auto 1.8rem; font-size: 1.1rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info .info-item { display: flex; gap: 1rem; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-info .info-item:last-child { border-bottom: 0; }
.contact-info .ico {
  width: 48px; height: 48px; border-radius: 12px; background: var(--green-light);
  color: var(--green-dark); display: grid; place-items: center; flex: none;
}
.contact-info .ico svg { width: 24px; height: 24px; }
.contact-info .k { font-weight: 700; color: var(--charcoal); margin-bottom: 2px; }
.contact-info .v { color: var(--muted); }
.contact-info .v a { color: var(--green-dark); font-weight: 600; }

.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .92rem; color: var(--charcoal); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: .8rem .95rem; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-size: .98rem; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(0,157,0,.15);
}
.field textarea { resize: vertical; min-height: 130px; }
.form .consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.form .consent input { width: auto; margin-top: 4px; }
.form button { width: 100%; justify-content: center; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 12px; text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: #c3cbd4; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand img { height: 38px; margin-bottom: 18px; }
.footer-brand p { color: #97a1ad; max-width: 320px; font-size: .96rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.site-footer ul { list-style: none; display: grid; gap: .6rem; }
.site-footer a { color: #c3cbd4; }
.site-footer a:hover { color: var(--green-bright); text-decoration: none; }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; color: #c3cbd4; font-size: .95rem; }
.footer-contact svg { width: 18px; height: 18px; color: var(--green-bright); flex: none; margin-top: 3px; }
.footer-bottom {
  margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: .88rem; color: #8b95a1;
}
.footer-bottom a { color: #8b95a1; }
.footer-bottom a:hover { color: var(--green-bright); text-decoration: none; }

/* ---------- Legal pages ---------- */
.legal { padding: 64px 0 80px; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: .4rem; }
.legal .lead { color: var(--muted); margin-bottom: 2.5rem; }
.legal h2 { font-size: 1.35rem; margin-top: 2.2rem; }
.legal h3 { font-size: 1.08rem; margin-top: 1.4rem; color: var(--charcoal-2); }
.legal p, .legal li { color: #3c4450; }
.legal ul { padding-left: 1.2rem; list-style: disc; margin-bottom: 1rem; }
.legal a { color: var(--green-dark); font-weight: 600; }
.backlink { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: 1.5rem; font-weight: 600; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; padding: 80px 0 86px; }
  .hero-card { max-width: 520px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .profile { grid-template-columns: 1fr; gap: 36px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps.lined .step::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
}
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .nav-links, .nav-actions .btn { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex; position: absolute; top: 78px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 8px 0;
  }
  .nav.open .nav-links li { padding: 0; }
  .nav.open .nav-links a { display: block; padding: 14px 24px; }
  .nav.open .nav-links a::after { display: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .form .row { grid-template-columns: 1fr; }
  .cta-band { padding: 38px 24px; }
}
@media (max-width: 520px) {
  .cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .hero-meta { gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
