/* IT Solutions Schwarzwald – statischer One-Pager */

:root {
  --forest: #1b261d;
  --forest-mid: #243027;
  --mist: #d1d5db;
  --silver: #e5e7eb;
  --white: #f9fafb;
  --panel-bg: rgba(0, 0, 0, 0.5);
  --panel-border: rgba(255, 255, 255, 0.1);
  --header-bg: rgba(15, 22, 18, 0.82);
  --text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85), 0 2px 24px rgba(0, 0, 0, 0.45);
  --radius: 12px;
  --radius-lg: 18px;
  --space: clamp(1rem, 3vw, 1.75rem);
  --max: 1100px;
  --max-narrow: 560px;
  font-size: 100%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Sanftes Scrollen zu Ankern: main.js (scrollIntoView), respektiert prefers-reduced-motion */

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--white);
  text-shadow: var(--text-shadow);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--forest);
  color: var(--silver);
  text-decoration: none;
  border-radius: 6px;
}

.skip-link:focus {
  left: 0.5rem;
  outline: 2px solid var(--silver);
  outline-offset: 2px;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-color: var(--forest);
  /* Bilddatei: assets/bg-forest.png (wird in main.js gesetzt, inkl. Fallback bg-forest.png im Projekt-Root) */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* Desktop: fixierter Hintergrund; auf schmalen Viewports scroll (Performance, iOS) */
  background-attachment: fixed;
}

.page-bg-tint {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.2) 40%,
    rgba(0, 0, 0, 0.45) 100%
  );
}

@media (max-width: 768px) {
  .page-bg {
    background-attachment: scroll;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--panel-border);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--space);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem 1rem;
}

.brand--home {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  border-radius: 10px;
  outline-offset: 3px;
}

.brand--home:focus-visible {
  outline: 2px solid var(--silver);
}

.brand--home:hover .brand__name {
  color: var(--white);
}

.brand--home:hover .brand__motto {
  color: var(--silver);
}

/* assets/logo.png: Wortmarke (enthält den Namen) — HTML-Name ausblenden, nur Motto */
.brand--asset-logo .brand__name {
  display: none;
}

.brand--asset-logo .brand__text {
  gap: 0.12rem;
}

.brand__mark {
  position: relative;
  flex: 0 0 auto;
  flex-shrink: 0;
  align-self: center;
  width: auto;
  height: auto;
  min-width: 52px;
  min-height: 44px;
  max-height: 56px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.brand--asset-logo .brand__mark {
  min-width: min(200px, 46vw);
}

/* Symbol nur Fallback; PNG liegt darüber */
.brand__logo--symbol {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(229, 231, 235, 0.98);
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.brand__mark.has-mark-image .brand__logo--symbol {
  opacity: 0;
  visibility: hidden;
}

.brand__logo--symbol svg {
  width: 48px;
  height: 48px;
  display: block;
  box-sizing: border-box;
}

.brand__logo-img {
  position: relative;
  z-index: 1;
  display: block;
  height: clamp(40px, 4.5vw, 52px);
  width: auto;
  max-width: min(300px, 58vw);
  max-height: 56px;
  object-fit: contain;
  object-position: left center;
  opacity: 0;
  border: 0;
  outline: none;
  transition: opacity 0.2s ease;
}

.brand__logo-img.is-loaded {
  opacity: 1;
}

.brand__center {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

.brand__text {
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.2rem;
}

.brand__name {
  font-weight: 500;
  font-size: clamp(0.98rem, 2vw, 1.2rem);
  letter-spacing: 0.01em;
  line-height: 1.3;
  color: var(--silver);
  text-transform: none;
  font-variant-numeric: lining-nums;
}

.brand__motto {
  margin: 0;
  font-size: clamp(0.78rem, 1.5vw, 0.9rem);
  color: var(--mist);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.site-nav {
  flex: 0 0 auto;
  align-self: center;
}

/* Volle Inhaltsbreite wie das Panel in „Wer wir sind“, kein schmaler Linksbalken */
.kontakt__col {
  max-width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  color: var(--silver);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--silver);
  outline-offset: 2px;
}

.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.is-open .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.is-open .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.site-header.is-open .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.site-nav a {
  color: var(--mist);
  text-decoration: none;
  font-weight: 500;
  padding: 0.35rem 0.15rem;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--silver);
  border-bottom-color: rgba(229, 231, 235, 0.5);
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .brand {
    flex: 1 1 calc(100% - 3.75rem);
    min-width: 0;
  }

  .brand__center {
    justify-content: center;
  }

  .site-nav {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .site-header.is-open .site-nav {
    max-height: 200px;
  }

  .site-nav__list {
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.5rem 0 0;
  }
}

main {
  padding-bottom: 3rem;
}

.section {
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--space);
  position: relative;
}

.section__inner {
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
}

.section__inner--narrow {
  max-width: var(--max-narrow);
}

.section__title {
  margin: 0 0 1.5rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 650;
  color: var(--silver);
  letter-spacing: 0.02em;
}

.panel {
  background: var(--panel-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 4vw, 2rem);
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.panel--flush {
  margin-bottom: 0;
}

.panel__title {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  color: var(--silver);
}

.panel__motto {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
}

.panel__lead {
  margin: 0 0 1.5rem;
  color: var(--mist);
  font-size: 1.05rem;
}

.icon-grid {
  display: grid;
  gap: 1.25rem;
}

.icon-grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.icon-grid--6 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.feature__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 0.65rem;
  color: var(--silver);
}

.feature__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.feature__title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: var(--silver);
}

.feature__text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--mist);
}

.section--about {
  overflow: hidden;
}

.about {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 768px) {
  .about {
    grid-template-columns: auto 1fr;
    gap: 2rem;
  }
}

.about__profiles {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-start;
}

@media (min-width: 768px) {
  .about__profiles {
    flex-direction: column;
    justify-content: flex-start;
  }
}

.profile-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid var(--panel-border);
  color: var(--mist);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-photo svg {
  width: 100%;
  height: 100%;
}

.about__text {
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
}

.about__text > p,
.about__text > .highlights {
  max-width: min(66ch, 100%);
}

.about__text > p {
  margin: 0 0 1rem;
  color: var(--mist);
  line-height: 1.65;
}

@supports (text-wrap: pretty) {
  .about__text > p {
    text-wrap: pretty;
  }
}

.highlights {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}

.highlights li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.85rem;
  color: var(--mist);
}

.highlights__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  color: var(--silver);
}

.highlights__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.form-hint {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--mist);
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--silver);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius);
  border: 1px solid var(--panel-border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--white);
  font: inherit;
  text-shadow: none;
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--silver);
  outline-offset: 1px;
  border-color: rgba(229, 231, 235, 0.35);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font: inherit;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn--primary {
  background: linear-gradient(180deg, var(--forest-mid), var(--forest));
  color: var(--silver);
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 0.5rem;
  width: 100%;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.btn--primary:hover {
  background: linear-gradient(180deg, #2d3d32, #1b261d);
  color: var(--white);
}

.btn--primary:focus-visible {
  outline: 2px solid var(--silver);
  outline-offset: 2px;
}

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

.site-footer {
  padding: 1.5rem var(--space);
  border-top: 1px solid var(--panel-border);
  background: rgba(0, 0, 0, 0.35);
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--mist);
}

.site-footer__links {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.site-footer a {
  color: var(--silver);
}

.site-footer a:focus-visible {
  outline: 2px solid var(--silver);
  outline-offset: 2px;
}

/* Rechtliche Seiten */
.legal main {
  padding-top: 1.5rem;
}

.legal .site-nav {
  display: block;
}

.legal .nav-toggle {
  display: none;
}

/* Datenschutz / längere Rechtstexte (Elementor-Inhalt als HTML) */
.legal .panel.legal-prose h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.35rem;
  font-weight: 650;
  color: var(--silver);
  letter-spacing: 0.02em;
}

.legal .panel.legal-prose h2:first-child {
  margin-top: 0;
}

.legal .panel.legal-prose h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--silver);
}

.legal .panel.legal-prose h4 {
  margin: 1.15rem 0 0.4rem;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--silver);
}

.legal .panel.legal-prose p {
  margin: 0 0 1rem;
  color: var(--mist);
}

.legal .panel.legal-prose ul {
  margin: 0 0 1rem 1.25rem;
  padding: 0;
  color: var(--mist);
}

.legal .panel.legal-prose li {
  margin-bottom: 0.65rem;
}

.legal .panel.legal-prose a {
  color: var(--silver);
  word-break: break-word;
}
