/* =============================================================
   SouverIT – Main Stylesheet
   CI Colors: Dark #283655 | Mid #4D648D | Light #D0E1F9 | White #FCFDFE | Accent #D55448
   Fonts: Montserrat (headings, 700/800) | Inter (body, 400/500/600)
   ============================================================= */

/* ── 1. CUSTOM PROPERTIES ─────────────────────────────────── */
:root {
  /* Brand colors */
  --c-dark:       #283655;
  --c-dark-alt:   #1d2847;
  --c-darker:     #141c30;
  --c-mid:        #4D648D;
  --c-light:      #D0E1F9;
  --c-white:      #FCFDFE;
  --c-accent:     #D55448;

  /* Text colors */
  --t-on-dark:    #FCFDFE;
  --t-on-light:   #1a2440;
  --t-muted-dark: #a8bdd8;
  --t-muted-light:#4a5f7a;

  /* Spacing */
  --section-py:   5rem;
  --container:    1140px;
  --radius:       10px;
  --radius-lg:    16px;

  /* Transitions */
  --ease-out:     cubic-bezier(0, 0.7, 0.3, 1);
  --ease-smooth:  cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── 2. RESET & BASE ──────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--t-on-dark);
  background-color: var(--c-dark-alt);
  -webkit-font-smoothing: antialiased;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

address {
  font-style: normal;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ── 3. TYPOGRAPHY ────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.35rem); }

p { max-width: 65ch; }

code {
  font-family: 'Source Code Pro', 'Fira Code', 'Courier New', monospace;
  font-size: 0.875em;
  background: rgba(77, 100, 141, 0.25);
  color: var(--c-light);
  padding: 0.1em 0.4em;
  border-radius: 4px;
}

strong {
  font-weight: 600;
  color: inherit;
}

/* ── 4. LAYOUT UTILITIES ──────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section {
  padding-block: var(--section-py);
}

.section-light {
  background-color: var(--c-white);
  color: var(--t-on-light);
}

.section-dark {
  background-color: var(--c-dark-alt);
  color: var(--t-on-dark);
}

.section-dark-alt {
  background: linear-gradient(135deg, var(--c-darker) 0%, #1f2e4f 100%);
  color: var(--t-on-dark);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  margin-bottom: 0.6rem;
}

.section-light .section-title {
  color: var(--t-on-light);
}

.section-sub {
  font-size: 1.05rem;
  opacity: 0.65;
  max-width: none;
}

.section-badge {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-accent);
  border: 1px solid rgba(213, 84, 72, 0.4);
  border-radius: 100px;
  padding: 0.3em 1em;
  margin-bottom: 1rem;
}

/* ── 5. LOGO WORDMARK ─────────────────────────────────────── */
.logo-souver {
  color: var(--c-white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
}

.logo-it {
  color: var(--c-accent);
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
}

/* Light sections: invert wordmark */
.section-light .logo-souver {
  color: var(--c-dark);
}

/* ── 6. BUTTONS ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75em 1.75em;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    background-color 0.2s var(--ease-smooth),
    color 0.2s var(--ease-smooth),
    border-color 0.2s var(--ease-smooth),
    box-shadow 0.2s var(--ease-smooth),
    transform 0.15s var(--ease-smooth);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}

.btn:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 3px;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background-color: var(--c-accent);
  color: #fff;
  border-color: var(--c-accent);
}

.btn-primary:hover {
  background-color: #bf4840;
  border-color: #bf4840;
  box-shadow: 0 4px 18px rgba(213, 84, 72, 0.4);
}

.btn-outline {
  background-color: transparent;
  color: var(--c-white);
  border-color: rgba(208, 225, 249, 0.4);
}

.btn-outline:hover {
  background-color: rgba(208, 225, 249, 0.1);
  border-color: rgba(208, 225, 249, 0.7);
}

/* ── 7. HEADER / NAV ──────────────────────────────────────── */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: transparent;
  transition: background-color 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth);
}

#site-header.scrolled {
  background-color: rgba(29, 40, 71, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(77, 100, 141, 0.25);
}

.nav-container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.nav-logo:hover { opacity: 0.85; }

.nav-menu ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-menu a {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--t-muted-dark);
  padding: 0.5em 0.9em;
  border-radius: 6px;
  transition: color 0.2s, background-color 0.2s;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: var(--c-white);
  background-color: rgba(77, 100, 141, 0.25);
  outline: none;
}

.nav-menu a.nav-cta {
  color: var(--c-white);
  background-color: var(--c-accent);
  padding: 0.45em 1.1em;
}

.nav-menu a.nav-cta:hover {
  background-color: #bf4840;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: background-color 0.2s;
}

.nav-toggle:hover {
  background-color: rgba(77, 100, 141, 0.3);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--c-white);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-smooth), opacity 0.3s;
}

.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);
}

/* ── 8. HERO ──────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--c-dark);
  padding-top: 64px; /* header height */
}

/* Subtle background grid / pattern */
.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(77, 100, 141, 0.18) 0%, transparent 70%),
    linear-gradient(to bottom, var(--c-dark) 0%, var(--c-dark-alt) 100%);
  background-size: 100% 100%, 100% 100%;
}

/* Dot grid overlay */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(208, 225, 249, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding-block: 4rem;
}

.hero-text {
  max-width: 560px;
}

.hero-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 0.75rem;
  max-width: none;
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--t-muted-dark);
  margin-bottom: 1.75rem;
  max-width: 50ch;
}

.hero-bullets {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2.25rem;
}

.hero-bullets li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.95rem;
  color: var(--t-muted-dark);
}

.hero-bullets li svg {
  flex-shrink: 0;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Hero illustration */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-art {
  width: 100%;
  max-width: 420px;
  filter: drop-shadow(0 20px 60px rgba(29, 40, 71, 0.6));
  animation: floatArt 6s ease-in-out infinite;
}

@keyframes floatArt {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

/* ── 9. SERVICE CARDS ─────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background-color: var(--c-dark);
  border: 1px solid rgba(77, 100, 141, 0.3);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition:
    transform 0.25s var(--ease-smooth),
    box-shadow 0.25s var(--ease-smooth),
    border-color 0.25s var(--ease-smooth);
  color: var(--t-on-dark);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(29, 40, 71, 0.5);
  border-color: rgba(77, 100, 141, 0.7);
}

.card-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.card-icon svg {
  width: 100%;
  height: 100%;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: 0;
}

.card-body,
.card-intro {
  font-size: 0.93rem;
  color: var(--t-muted-dark);
  line-height: 1.65;
  max-width: none;
}

.card-intro {
  margin-bottom: 0;
}

.card-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-left: 0;
  font-size: 0.88rem;
  color: var(--t-muted-dark);
}

.card-list li {
  padding-left: 1.1em;
  position: relative;
}

.card-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--c-accent);
  font-weight: 700;
}

/* Spec list variant */
.card-list-specs li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-left: 0;
}

.card-list-specs li::before {
  display: none;
}

.spec-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background-color: rgba(77, 100, 141, 0.35);
  color: var(--c-light);
  padding: 0.2em 0.55em;
  border-radius: 4px;
  min-width: 3.2rem;
  text-align: center;
  flex-shrink: 0;
}

.card-note {
  font-size: 0.83rem;
  color: var(--t-muted-dark);
  opacity: 0.75;
  border-top: 1px solid rgba(77, 100, 141, 0.2);
  padding-top: 0.75rem;
  max-width: none;
}

/* ── 10. PROJEKTE SECTION ─────────────────────────────────── */
.projekte-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.projekte-text {
  font-size: 1rem;
  color: var(--t-muted-dark);
  max-width: 54ch;
  text-align: center;
}

/* Project cards grid */
.projekt-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.projekt-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(77, 100, 141, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition:
    transform 0.25s var(--ease-smooth),
    border-color 0.25s var(--ease-smooth),
    background-color 0.25s var(--ease-smooth),
    box-shadow 0.25s var(--ease-smooth);
}

.projekt-card:hover {
  transform: translateY(-4px);
  border-color: rgba(77, 100, 141, 0.65);
  background-color: rgba(255, 255, 255, 0.07);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.3);
}

.projekt-card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.1rem;
  flex-shrink: 0;
}

.projekt-card-icon svg {
  width: 100%;
  height: 100%;
}

.projekt-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.projekt-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: 0.1rem;
}

.projekt-card-text {
  font-size: 0.9rem;
  color: var(--t-muted-dark);
  line-height: 1.65;
  max-width: none;
  flex: 1;
}

.projekt-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-accent);
  text-decoration: none;
  transition: gap 0.2s var(--ease-smooth), opacity 0.2s;
}

.projekt-link:hover {
  gap: 0.65em;
  opacity: 0.85;
}

/* CTA block below cards */
.projekte-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  border-top: 1px solid rgba(77, 100, 141, 0.2);
  padding-top: 2.5rem;
  text-align: center;
}

.inline-link {
  color: var(--c-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.inline-link:hover {
  color: var(--c-accent);
}

/* ── 11. ÜBER UNS ─────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: start;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: var(--t-on-light);
}

.about-text p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--t-muted-light);
}

.about-lead {
  font-size: 1.2rem !important;
  font-weight: 600;
  color: var(--t-on-light) !important;
}

.about-team {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex-shrink: 0;
}

.team-name-chip {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--c-white);
  background: linear-gradient(135deg, var(--c-dark) 0%, var(--c-mid) 100%);
  padding: 0.6em 1.2em;
  border-radius: 8px;
  text-align: center;
  min-width: 110px;
  transition: transform 0.2s var(--ease-smooth), box-shadow 0.2s;
}

.team-name-chip:hover {
  transform: translateX(-4px);
  box-shadow: 4px 0 16px rgba(77, 100, 141, 0.3);
}

/* ── 12. KONTAKT ──────────────────────────────────────────── */
.kontakt-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
}

.kontakt-inner .section-title {
  color: var(--c-white);
}

.kontakt-sub {
  font-size: 1.05rem;
  color: var(--t-muted-dark);
  max-width: none;
}

.kontakt-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 0.5rem;
}

.kontakt-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  background-color: rgba(29, 40, 71, 0.8);
  border: 1px solid rgba(77, 100, 141, 0.35);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2.5rem;
  min-width: 200px;
  color: var(--t-on-dark);
  text-decoration: none;
  transition:
    border-color 0.2s var(--ease-smooth),
    background-color 0.2s var(--ease-smooth),
    transform 0.2s var(--ease-smooth),
    box-shadow 0.2s var(--ease-smooth);
}

.kontakt-card:hover {
  border-color: var(--c-accent);
  background-color: rgba(213, 84, 72, 0.08);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(213, 84, 72, 0.2);
}

.kontakt-icon {
  width: 36px;
  height: 36px;
  color: var(--c-accent);
}

.kontakt-icon svg {
  width: 100%;
  height: 100%;
}

.kontakt-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--t-muted-dark);
}

.kontakt-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--c-white);
}

/* ── 13. FOOTER ───────────────────────────────────────────── */
.site-footer {
  background-color: var(--c-darker);
  color: var(--t-muted-dark);
  border-top: 1px solid rgba(77, 100, 141, 0.2);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem 3rem;
  padding-block: 3rem;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-logo {
  font-size: 1.4rem;
  display: inline-block;
  transition: opacity 0.2s;
}

.footer-logo:hover { opacity: 0.8; }

.footer-address {
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--t-muted-dark);
}

.footer-nav {
  display: flex;
  gap: 2.5rem;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav a {
  font-size: 0.88rem;
  color: var(--t-muted-dark);
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--c-white);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
}

.footer-contact-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--t-muted-dark);
  transition: color 0.2s;
}

.footer-contact-link:hover {
  color: var(--c-light);
}

.footer-bottom {
  border-top: 1px solid rgba(77, 100, 141, 0.15);
  padding-block: 1rem;
}

.footer-bottom .container {
  display: flex;
  justify-content: center;
}

.footer-bottom small {
  font-size: 0.78rem;
  color: var(--t-muted-dark);
  opacity: 0.65;
}

.footer-bottom a {
  color: var(--t-muted-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.footer-bottom a:hover {
  color: var(--c-light);
}

/* ── 14. REVEAL ANIMATIONS ────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s var(--ease-smooth),
    transform 0.6s var(--ease-smooth);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.cards-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.cards-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.cards-grid .reveal:nth-child(4) { transition-delay: 0.3s; }

/* ── 15. FOCUS VISIBLE ────────────────────────────────────── */
:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── 16. IMPRESSUM / STATIC PAGES ────────────────────────── */
.page-content {
  padding-top: calc(64px + 3rem);
  padding-bottom: var(--section-py);
  background-color: var(--c-white);
  color: var(--t-on-light);
  min-height: 80vh;
}

.page-content .container {
  max-width: 760px;
}

.prose h1 { margin-bottom: 1.5rem; color: var(--t-on-light); }
.prose h2 {
  font-size: 1.25rem;
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  color: var(--t-on-light);
}
.prose h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--t-on-light);
}
.prose p {
  font-size: 0.95rem;
  color: var(--t-muted-light);
  margin-bottom: 0.9rem;
  max-width: none;
}
.prose hr {
  border: none;
  border-top: 1px solid rgba(77, 100, 141, 0.2);
  margin-block: 2rem;
}
.prose a {
  color: var(--c-mid);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose a:hover { color: var(--c-accent); }
.prose strong { color: var(--t-on-light); }

/* ── 17. RESPONSIVE ───────────────────────────────────────── */

/* Large screens */
@media (min-width: 1024px) {
  .hero-content {
    gap: 4rem;
  }
}

/* Medium – tablet */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text {
    max-width: 100%;
    align-items: center;
    display: flex;
    flex-direction: column;
  }

  .hero-sub { max-width: none; }

  .hero-bullets {
    align-items: flex-start;
    width: 100%;
    max-width: 400px;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-visual {
    display: none; /* hide illustration on tablet/mobile to save space */
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-team {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-contact {
    align-items: flex-start;
    grid-column: 1 / -1;
  }
}

/* Small – mobile */
@media (max-width: 640px) {
  :root {
    --section-py: 3.5rem;
  }

  /* Mobile nav */
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    inset: 64px 0 0 0;
    background-color: rgba(20, 28, 48, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease-smooth);
  }

  .nav-menu.open {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-menu ul {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .nav-menu a {
    font-size: 1.25rem;
    padding: 0.6em 1.5em;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-block: 5rem 3rem;
  }

  .hero-content {
    padding-block: 2rem;
  }

  .kontakt-cards {
    flex-direction: column;
    align-items: stretch;
  }

  .kontakt-card {
    min-width: auto;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

  .footer-contact {
    align-items: center;
    grid-column: auto;
  }

  .footer-brand {
    align-items: center;
  }
}

/* Very small screens */
@media (max-width: 380px) {
  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }
}

/* ── 18. NAV ASN LINK ─────────────────────────────────────── */
.nav-asn {
  font-family: 'Source Code Pro', 'Fira Code', 'Courier New', monospace !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em;
  color: var(--c-light) !important;
  border: 1px solid rgba(208, 225, 249, 0.25);
  border-radius: 5px;
  padding: 0.35em 0.75em !important;
}

.nav-asn:hover,
.nav-asn:focus-visible {
  background-color: rgba(208, 225, 249, 0.1) !important;
  border-color: rgba(208, 225, 249, 0.5) !important;
  color: var(--c-white) !important;
}

.nav-asn[aria-current="page"] {
  background-color: rgba(208, 225, 249, 0.12);
  border-color: rgba(208, 225, 249, 0.4);
}

/* ── 19. PROJEKT CARD STAGGER ────────────────────────────── */
.projekt-cards .reveal:nth-child(2) { transition-delay: 0.1s; }
.projekt-cards .reveal:nth-child(3) { transition-delay: 0.2s; }

/* ── 20. ASN PAGE HERO ────────────────────────────────────── */
.asn-hero {
  position: relative;
  padding-top: calc(64px + 4rem);
  padding-bottom: 5rem;
  overflow: hidden;
  background-color: var(--c-darker);
}

.asn-hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 70% 80% at 50% 60%, rgba(77, 100, 141, 0.15) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 20%, rgba(213, 84, 72, 0.06) 0%, transparent 60%);
}

/* Animated dot grid */
.asn-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(208, 225, 249, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
}

.asn-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  max-width: 760px;
}

.asn-hero h1 {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--c-white);
}

.asn-number-display {
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  font-weight: 800;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: -0.03em;
  color: var(--c-white);
  display: flex;
  align-items: baseline;
  gap: 0.1em;
  line-height: 1;
}

.asn-as {
  color: var(--c-accent);
  font-size: 0.55em;
  font-weight: 800;
  letter-spacing: 0.05em;
  vertical-align: super;
  font-size: clamp(1.2rem, 3vw, 2rem);
}

.asn-hero-sub {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--t-muted-dark);
  max-width: 56ch;
  line-height: 1.7;
}

/* ── 21. ASN TECH SECTION ────────────────────────────────── */
.asn-tech-section {
  /* Light section, already handled by .section-light */
}

.tech-blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.tech-block {
  display: flex;
  flex-direction: column;
  gap: 0;
  background-color: var(--c-dark);
  border: 1px solid rgba(77, 100, 141, 0.3);
  border-radius: var(--radius-lg);
  padding: 2rem;
  color: var(--t-on-dark);
  transition:
    transform 0.25s var(--ease-smooth),
    box-shadow 0.25s var(--ease-smooth),
    border-color 0.25s var(--ease-smooth);
}

.tech-block:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(20, 28, 48, 0.4);
  border-color: rgba(77, 100, 141, 0.6);
}

.tech-block-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.tech-block-icon svg {
  width: 100%;
  height: 100%;
}

/* ASN number badge inside block */
.tech-block-asn-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.1em;
  background: rgba(213, 84, 72, 0.12);
  border: 1px solid rgba(213, 84, 72, 0.3);
  border-radius: 6px;
  padding: 0.3em 0.8em;
  font-family: 'Source Code Pro', 'Fira Code', 'Courier New', monospace;
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: 0.9rem;
  letter-spacing: 0.04em;
  align-self: flex-start;
}

.asn-tag-prefix {
  color: var(--c-accent);
  font-size: 0.8em;
  letter-spacing: 0.08em;
}

.tech-block-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: 0.85rem;
}

.tech-block-text {
  font-size: 0.92rem;
  color: var(--t-muted-dark);
  line-height: 1.68;
  max-width: none;
  margin-bottom: 0.6rem;
}

.tech-block-text:last-of-type {
  margin-bottom: 1rem;
}

.tech-block-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--c-accent);
  text-decoration: none;
  margin-top: auto;
  transition: gap 0.2s var(--ease-smooth), opacity 0.2s;
}

.tech-block-link:hover {
  gap: 0.7em;
  opacity: 0.85;
}

/* Technology tags */
.tech-block-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.tech-tag {
  font-family: 'Inter', sans-serif;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.3em 0.7em;
  border-radius: 4px;
  background: rgba(77, 100, 141, 0.25);
  border: 1px solid rgba(77, 100, 141, 0.35);
  color: var(--c-light);
}

.tech-tag-accent {
  background: rgba(213, 84, 72, 0.15);
  border-color: rgba(213, 84, 72, 0.3);
  color: #f0a09a;
}

/* ── 22. CONNECTIVITY MAP ────────────────────────────────── */
.asn-map-section {
  /* Dark section */
}

.connectivity-card {
  background-color: var(--c-white);
  border: 1px solid rgba(77, 100, 141, 0.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(77, 100, 141, 0.15);
  margin-bottom: 2.5rem;
}

.connectivity-card-inner {
  width: 100%;
  overflow: hidden;
  background-color: var(--c-white);
  line-height: 0; /* remove inline img gap */
}

.connectivity-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  max-height: 520px;
}

.connectivity-caption {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.25rem;
  background-color: var(--c-white);
  border-top: 1px solid rgba(77, 100, 141, 0.15);
  font-size: 0.82rem;
  color: var(--t-muted-light);
}

.connectivity-caption a {
  color: var(--c-mid);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.connectivity-caption a:hover {
  color: var(--c-accent);
}

.connectivity-caption svg {
  flex-shrink: 0;
  color: var(--c-mid);
  opacity: 0.6;
}

.asn-cta-row {
  display: flex;
  justify-content: center;
}

/* ── 23. RESPONSIVE – ASN PAGE ───────────────────────────── */
@media (max-width: 700px) {
  .tech-blocks {
    grid-template-columns: 1fr;
  }

  .asn-hero-content {
    align-items: center;
    text-align: center;
  }

  .asn-hero h1 {
    align-items: center;
  }

  .asn-hero-sub {
    max-width: none;
  }

  .tech-block-asn-tag {
    align-self: center;
  }

  .connectivity-img {
    max-height: 260px;
    object-fit: cover;
  }

  .projekt-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .asn-number-display {
    font-size: 2.2rem;
  }
}
