/* ============================================================
   ITK-Partner Österreich — modernes Design (rote Markenfarbe)
   ============================================================ */

:root {
  --red:       #e2254b;
  --red-deep:  #b31237;
  --red-2:     #ff4d6d;
  --red-soft:  #ffe3e9;
  --dark:      #15151c;
  --dark-2:    #1f1f29;
  --ink:       #1c2026;
  --muted:     #5b6470;
  --line:      #e7e9ee;
  --bg:        #f6f7f9;
  --white:     #ffffff;
  --shadow-sm: 0 1px 2px rgba(21,21,28,.06), 0 2px 8px rgba(21,21,28,.06);
  --shadow-md: 0 8px 24px rgba(21,21,28,.10);
  --shadow-lg: 0 18px 44px rgba(21,21,28,.16);
  --radius: 16px;
  --radius-sm: 10px;
  --grad: linear-gradient(120deg, var(--red) 0%, var(--red-2) 100%);
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-deep); }

.container { width: min(1160px, 92%); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.4rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; line-height: 1;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(226,37,75,.32); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(226,37,75,.42); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.3); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.2); color: #fff; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--red); border-color: var(--red); }
.btn-outline:hover { background: rgba(226,37,75,.07); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .75rem; }
.brand img { height: 30px; width: auto; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--grad); color: #fff; font-weight: 800; font-size: 1rem;
  display: grid; place-items: center; letter-spacing: -.5px;
}

.nav-links { display: flex; align-items: center; gap: 1.9rem; list-style: none; }
.nav-links a { color: var(--ink); font-weight: 600; font-size: .92rem; position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--grad); transition: width .2s ease; border-radius: 2px;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { margin-left: .5rem; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 42px; height: 42px; border-radius: 10px; place-items: center;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 520px at 88% -10%, rgba(226,37,75,.5), transparent 60%),
    radial-gradient(720px 440px at -12% 112%, rgba(255,77,109,.32), transparent 60%),
    linear-gradient(135deg, #14141b 0%, #1b1b24 55%, #23232e 100%);
  color: #fff;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 40%, transparent 100%);
}
.hero-inner {
  position: relative; display: grid; grid-template-columns: 1.15fr .85fr;
  gap: 3rem; align-items: center; padding: 5.5rem 0 6rem;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  padding: .4rem .9rem; border-radius: 999px; font-size: .8rem; font-weight: 600;
  letter-spacing: .02em; margin-bottom: 1.4rem;
}
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red-2); box-shadow: 0 0 0 4px rgba(255,77,109,.3); }
.hero h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); line-height: 1.08; font-weight: 800; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #ff4d6d, #ffb3c0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { margin: 1.4rem 0 2rem; font-size: 1.12rem; color: rgba(255,255,255,.82); max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.hero-panel {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: 22px; padding: 1.6rem; backdrop-filter: blur(8px);
  display: grid; gap: 1rem;
}
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }
.stat { text-align: center; padding: 1rem .5rem; background: rgba(255,255,255,.05); border-radius: 14px; }
.stat b { display: block; font-size: 1.7rem; font-weight: 800; background: linear-gradient(90deg,#fff,#ffb3c0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: .74rem; color: rgba(255,255,255,.72); letter-spacing: .02em; }
.panel-note { display: flex; gap: .7rem; align-items: flex-start; font-size: .86rem; color: rgba(255,255,255,.75); }
.panel-note .ico { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; background: #fff; display: grid; place-items: center; padding: .25rem; }

/* ---------- Sections ---------- */
section { padding: 5rem 0; }
.section-head { max-width: 640px; margin: 0 auto 3rem; text-align: center; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: .7rem; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.15; font-weight: 800; letter-spacing: -.015em; }
.section-head p { margin-top: .9rem; color: var(--muted); font-size: 1.05rem; }

/* ---------- Intro ---------- */
.intro { background: var(--bg); }
.intro-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.intro h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; line-height: 1.15; letter-spacing: -.015em; margin-bottom: 1rem; }
.intro h2 em { font-style: normal; color: var(--red); }
.intro p { color: var(--muted); margin-bottom: 1rem; }
.checklist { list-style: none; display: grid; gap: .7rem; margin-top: 1.4rem; }
.checklist li { display: flex; gap: .6rem; align-items: flex-start; font-weight: 600; color: var(--ink); }
.checklist li::before { content: "✓"; flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: .8rem; margin-top: .15rem; }
.intro-visual { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 1.4rem; }
.intro-visual img { border-radius: var(--radius-sm); }

/* ---------- Value props ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.7rem; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #f4c3cd; }
.card::after { content: ""; position: absolute; top: 0; left: 0; height: 4px; width: 100%; background: var(--grad); opacity: 0; transition: opacity .2s ease; }
.card:hover::after { opacity: 1; }
.card-icon { width: 62px; height: 62px; border-radius: 16px; background: var(--red-soft); display: grid; place-items: center; margin-bottom: 1.1rem; }
.card-icon img { width: 44px; height: auto; }
.card h3 { font-size: 1.18rem; font-weight: 700; margin-bottom: .6rem; }
.card p { color: var(--muted); font-size: .95rem; }
.card ul { list-style: none; margin-top: 1rem; display: grid; gap: .4rem; }
.card ul li { font-size: .9rem; color: var(--ink); display: flex; gap: .5rem; }
.card ul li::before { content: "•"; color: var(--red); font-weight: 700; }

/* ---------- Quote / manufacturer ---------- */
.quote-band { background: linear-gradient(120deg, #14141b, #1f1f29); color: #fff; }
.quote-wrap { display: grid; grid-template-columns: auto 1fr; gap: 2.2rem; align-items: center; max-width: 860px; margin-inline: auto; }
.quote-logo { width: 120px; height: 120px; border-radius: 50%; background: #fff; display: grid; place-items: center; padding: 1.1rem; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.quote-logo img { width: 100%; height: auto; border-radius: 50%; }
.quote-wrap blockquote { font-size: 1.35rem; font-weight: 600; line-height: 1.45; margin-bottom: .9rem; }
.quote-wrap blockquote::before { content: "„"; color: var(--red-2); }
.quote-wrap blockquote::after { content: "“"; color: var(--red-2); }
.quote-wrap figcaption { color: rgba(255,255,255,.7); font-size: .92rem; }

/* ---------- Partner directory ---------- */
.directory { background: var(--bg); }
.filter-tabs { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2.4rem; }
.tab {
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  padding: .55rem 1.1rem; border-radius: 999px; font-weight: 600; font-size: .88rem;
  cursor: pointer; transition: all .16s ease;
}
.tab:hover { border-color: var(--red); color: var(--red); }
.tab.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 6px 16px rgba(226,37,75,.3); }
.partner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.partner {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; display: flex; flex-direction: column; gap: .9rem;
  transition: transform .18s ease, box-shadow .18s ease;
}
.partner:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.partner-top { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.partner-logo { flex: 1 1 auto; height: 58px; min-width: 0; display: grid; place-items: center; background: #fafbfc; border: 1px solid var(--line); border-radius: 12px; padding: .45rem .6rem; }
.partner-logo img { max-height: 46px; max-width: 100%; object-fit: contain; }
.partner-logo--initials { font-size: 1.05rem; font-weight: 800; color: var(--red); letter-spacing: .02em; background: var(--red-soft); border-color: transparent; }
.badge { flex: 0 0 auto; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--red-deep); background: var(--red-soft); padding: .3rem .65rem; border-radius: 999px; white-space: nowrap; }
.partner h3 { font-size: 1.12rem; font-weight: 800; }
.partner .sub { font-size: .85rem; color: var(--muted); font-weight: 600; margin-top: -.7rem; }
.partner .addr { color: var(--muted); font-size: .9rem; }
.partner .contact { display: grid; gap: .35rem; font-size: .9rem; }
.partner .contact a { display: flex; align-items: center; gap: .45rem; font-weight: 500; color: var(--ink); }
.partner .contact a:hover { color: var(--red); }
.partner .contact svg { flex: 0 0 auto; }
.partner .actions { margin-top: auto; padding-top: .4rem; display: flex; gap: .6rem; }
.partner .actions a { font-size: .85rem; font-weight: 700; color: var(--red); }
.no-results { display: none; text-align: center; color: var(--muted); padding: 2rem; }

/* ---------- CTA ---------- */
.cta { background: var(--grad); color: #fff; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.4rem; }
.cta h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
.cta p { color: rgba(255,255,255,.9); margin-top: .4rem; }
.cta .btn { background: #fff; color: var(--red-deep); }
.cta .btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.22); }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: rgba(255,255,255,.72); padding: 3rem 0 2rem; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: .9rem; }
.site-footer a { color: rgba(255,255,255,.72); }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; display: grid; gap: .45rem; }
.footer-brand { display: flex; align-items: center; gap: .7rem; margin-bottom: .9rem; }
.footer-brand .brand-mark { width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; display: grid; place-items: center; }
.footer-bottom { margin-top: 2.2rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: .8rem; justify-content: space-between; font-size: .82rem; color: rgba(255,255,255,.55); }

/* ---------- Footer note (KI-Hinweis) ---------- */
.footer-note { margin-top: 1.4rem; font-size: .8rem; color: rgba(255,255,255,.55); }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  max-width: 720px; margin: 0 auto;
  background: var(--dark); color: #e8e8ee; border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}
.cookie-inner { padding: 20px 22px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.cookie-inner p { margin: 0; flex: 1 1 320px; font-size: .88rem; line-height: 1.5; }
.cookie-inner a { color: var(--red-2); }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-banner .btn-ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.cookie-banner .btn-ghost:hover { color: #fff; border-color: var(--red-2); background: rgba(255,255,255,.08); }
.cookie-ai { display: block; margin-top: 8px; font-size: .75rem; opacity: .78; }
.btn-sm { padding: .6rem 1.15rem; font-size: .85rem; }

/* ---------- Interactive map ---------- */
.map-card { max-width: 780px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 2rem; box-shadow: var(--shadow-sm); }
.map { position: relative; }
.map img { width: 100%; height: auto; display: block; }
.map-marker {
  position: absolute; width: 26px; height: 26px; border-radius: 50%;
  background: var(--grad); color: #fff; font-weight: 800; font-size: .78rem;
  line-height: 1; font-family: inherit; padding: 0; border: 2px solid #fff;
  display: grid; place-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.28); cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform .15s ease, box-shadow .15s ease;
}
.map-marker:hover, .map-marker:focus-visible { transform: translate(-50%, -50%) scale(1.3); box-shadow: 0 5px 16px rgba(226,37,75,.55); z-index: 2; }
.map-tooltip {
  position: absolute; z-index: 3; pointer-events: none;
  background: var(--dark); color: #fff; padding: .5rem .85rem; border-radius: 9px;
  font-size: .82rem; line-height: 1.45; white-space: nowrap;
  transform: translate(-50%, calc(-100% - 14px));
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
}
.map-tooltip::after { content: ""; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); border: 6px solid transparent; border-top-color: var(--dark); border-bottom: 0; }
.map-tooltip strong { display: block; font-size: .9rem; }
.map-tooltip span { color: rgba(255,255,255,.75); }

@media (max-width: 640px) {
  .cookie-inner { flex-direction: column; align-items: stretch; }
}

/* ---------- Subpages ---------- */
.subpage { max-width: 760px; margin-inline: auto; padding: 4rem 0 5rem; }
.subpage h1 { font-size: 2rem; font-weight: 800; margin-bottom: 1.4rem; }
.subpage h2 { font-size: 1.25rem; font-weight: 700; margin: 1.8rem 0 .6rem; }
.subpage p, .subpage li { color: var(--muted); margin-bottom: .6rem; }
.subpage ul { padding-left: 1.2rem; }
.subpage .box { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.6rem; margin: 1.4rem 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.2rem; padding: 3.5rem 0 4rem; }
  .cards { grid-template-columns: 1fr 1fr; }
  .partner-grid { grid-template-columns: 1fr 1fr; }
  .intro-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links, .nav-cta { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 1rem 6% 1.4rem; gap: 1rem; box-shadow: var(--shadow-md); }
  .nav-cta.open { display: inline-flex; }
  .nav-toggle { display: grid; }
  .cards { grid-template-columns: 1fr; }
  .partner-grid { grid-template-columns: 1fr; }
  .quote-wrap { grid-template-columns: 1fr; text-align: center; }
  .quote-logo { margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr 1fr; }
  section { padding: 3.4rem 0; }
}
