/* ============================================================
   STEUERBERATUNG WANGELIN — main.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@700&family=Barlow:wght@400;500&display=swap');

/* --- Reset & Base ------------------------------------------ */

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

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

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--clr-text);
  background: var(--clr-black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font: inherit;
  border: none;
  background: none;
  outline: none;
}

/* --- Barrierefreiheit -------------------------------------- */

:focus-visible {
  outline: 2px solid var(--clr-red);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* --- Layout-Helfer ----------------------------------------- */

.boxed {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.section--light { background: var(--clr-gray-light); }
.section--white { background: var(--clr-white); }
.section--dark  { background: var(--clr-black); color: var(--clr-white); }
.section--deep  { background: var(--clr-black-deep); color: var(--clr-white); }
.section--red   { background: var(--clr-red); color: var(--clr-white); }

.section__label {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clr-red);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section__label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}

.section--dark .section__label,
.section--deep .section__label {
  color: var(--clr-red);
}

.section__title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: var(--lh-heading);
  color: var(--clr-black);
  margin-bottom: 8px;
}

.section--dark .section__title,
.section--deep .section__title {
  color: var(--clr-white);
}

.section__subtitle {
  font-size: var(--fs-small);
  color: var(--clr-text-muted);
  line-height: var(--lh-body);
  max-width: 540px;
  margin-bottom: var(--space-xl);
}

.section--dark .section__subtitle,
.section--deep .section__subtitle {
  color: rgba(255,255,255,0.55);
}

/* --- Typografie -------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: var(--lh-heading);
}

p {
  line-height: var(--lh-body);
  margin-bottom: 1em;
}

p:last-child { margin-bottom: 0; }

/* --- Buttons ----------------------------------------------- */

.btn {
  display: inline-block;
  padding: var(--btn-pad);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--btn-fs);
  letter-spacing: var(--btn-ls);
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
}

.btn--primary {
  background: var(--clr-red);
  color: var(--clr-white);
  border: 1px solid var(--clr-red);
}

.btn--primary:hover {
  background: var(--clr-red-dark);
  border-color: var(--clr-red-dark);
}

.btn--outline {
  background: transparent;
  color: var(--clr-white);
  border: 1px solid rgba(255,255,255,0.35);
}

.btn--outline:hover {
  border-color: var(--clr-white);
  color: var(--clr-white);
}

.btn--outline-dark {
  background: transparent;
  color: var(--clr-black);
  border: 1px solid var(--clr-black);
}

.btn--outline-dark:hover {
  background: var(--clr-black);
  color: var(--clr-white);
}

.btn--outline-white {
  background: transparent;
  color: var(--clr-white);
  border: 1px solid rgba(255,255,255,0.5);
}

.btn--outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--clr-white);
}

.btn-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

/* --- Header ------------------------------------------------ */

#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--header-bg);
  transition: transform var(--transition-base), opacity 0.2s ease;
}

#site-header.header--hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

/* Logo-Bereich */
#logo-area {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: var(--header-logo-pad);
  transition: padding var(--transition-base);
}

#site-header.header--scrolled #logo-area {
  padding: var(--header-logo-pad-sm);
}

#logo-mark {
  width: 50px;
  height: 38px;
  flex-shrink: 0;
  transition: transform var(--transition-base);
}

#site-header.header--scrolled #logo-mark {
  transform: scale(0.78);
  transform-origin: left center;
}

.logo-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--clr-white);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  transition: font-size var(--transition-base);
}

#site-header.header--scrolled .logo-name {
  font-size: 17px;
}

.logo-sub {
  font-size: 10px;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  margin-top: 4px;
}

/* Navigation */
#main-nav {
  border-top: 1px solid rgba(255,255,255,0.07);
}

#main-nav > .boxed {
  padding-block: 0;
}

#main-nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

#main-nav a {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.82);
  transition: color var(--transition-fast), background var(--transition-fast);
  position: relative;
}

#main-nav a:hover {
  color: var(--clr-white);
}

#main-nav li.active a {
  color: var(--clr-white);
}

#main-nav li.active {
  background: var(--clr-red);
}

#main-nav li.active a::after {
  display: none;
}

/* Platzhalter damit der fixed Header den Content nicht verdeckt */
#header-spacer {
  height: 108px; /* Logo (66px) + Nav (42px) */
}

@media (max-width: 780px) {
  #header-spacer {
    height: 68px; /* nur Logo-Bereich, Nav versteckt */
  }
}

/* --- Hero -------------------------------------------------- */

.hero {
  background: var(--clr-black);
  color: var(--clr-white);
  padding-block: clamp(60px, 10vw, 100px);
}

.hero__overline {
  font-size: var(--fs-label);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clr-red);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero__overline::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--clr-red);
  flex-shrink: 0;
}

.hero__title {
  font-size: var(--fs-hero);
  line-height: 0.95;
  margin-bottom: var(--space-lg);
  color: var(--clr-white);
}

.hero__title em {
  color: var(--clr-red);
  font-style: normal;
}

.hero__text {
  font-size: 16px;
  line-height: var(--lh-body);
  color: rgba(255,255,255,0.58);
  max-width: 480px;
  margin-bottom: var(--space-xl);
}

/* --- Zielgruppen-Kacheln ----------------------------------- */

.tg-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.tg-card {
  background: var(--clr-white);
  border: var(--border-thin);
  padding: 28px 22px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
}

.tg-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--clr-gray-mid);
  transition: background var(--transition-base);
}

.tg-card:hover::before,
.tg-card.tg-card--active::before {
  background: var(--clr-red);
}

.tg-card:hover {
  box-shadow: var(--shadow-card);
}

.tg-card__title {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--clr-black);
  line-height: 1.15;
}

.tg-card__text {
  font-size: var(--fs-tiny);
  color: var(--clr-text-muted);
  line-height: 1.65;
  margin-bottom: var(--space-md);
}

.tg-card__link {
  font-size: var(--fs-label);
  color: var(--clr-red);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 500;
  transition: letter-spacing var(--transition-fast);
}

.tg-card:hover .tg-card__link {
  letter-spacing: 0.12em;
}

/* --- Spezialisierungen ------------------------------------- */

.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.spec-item {
  border-left: var(--border-accent);
  background: var(--clr-gray-light);
  padding: 26px 24px;
  transition: background var(--transition-fast);
}

.spec-item:hover {
  background: #ebebeb;
}

.spec-item__title {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--clr-black);
}

.spec-item__text {
  font-size: 13px;
  color: var(--clr-text-muted);
  line-height: 1.65;
  margin-bottom: 0;
}

/* --- DATEV-Band -------------------------------------------- */

.datev-band {
  background: var(--clr-red);
  padding-block: 34px;
}

.datev-band .boxed {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.datev-band__title {
  font-size: clamp(20px, 2.5vw, 28px);
  color: var(--clr-white);
  margin-bottom: 4px;
}

.datev-band__text {
  font-size: var(--fs-small);
  color: rgba(255,255,255,0.88);
  line-height: 1.6;
  margin-bottom: 0;
  max-width: 500px;
}

/* --- News-Kacheln ------------------------------------------ */

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.news-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.news-all-link {
  font-size: var(--fs-tiny);
  color: var(--clr-red);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  transition: letter-spacing var(--transition-fast);
}

.news-all-link:hover {
  letter-spacing: 0.15em;
}

.news-card {
  background: var(--clr-white);
  border: var(--border-thin);
  transition: box-shadow var(--transition-fast);
}

.news-card:hover {
  box-shadow: var(--shadow-card);
}

.news-card__img {
  height: 120px;
  background: var(--clr-gray-mid);
  position: relative;
  overflow: hidden;
}

.news-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-card:hover .news-card__img img {
  transform: scale(1.04);
}

.news-card__cat {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--clr-red);
  color: var(--clr-white);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 8px;
  font-weight: 500;
}

.news-card__cat--dark {
  background: var(--clr-black);
}

.news-card__body {
  padding: 18px 20px;
}

.news-card__date {
  font-size: var(--fs-label);
  color: var(--clr-text-faint);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.news-card__title {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--clr-black);
  line-height: 1.5;
  margin-bottom: 8px;
}

.news-card__excerpt {
  font-size: var(--fs-tiny);
  color: var(--clr-text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

/* --- CTA-Bar ----------------------------------------------- */

.cta-bar {
  background: var(--clr-black);
  padding-block: clamp(48px, 7vw, 72px);
  text-align: center;
}

.cta-bar__title {
  font-size: clamp(32px, 4vw, 50px);
  color: var(--clr-white);
  margin-bottom: var(--space-md);
}

.cta-bar__text {
  font-size: var(--fs-body);
  color: rgba(255,255,255,0.52);
  max-width: 440px;
  margin-inline: auto;
  margin-bottom: var(--space-xl);
}

.cta-bar .btn-group {
  justify-content: center;
}

/* --- Kontakttelefonzeile ----------------------------------- */

.contact-strip {
  background: var(--clr-black-deep);
  padding-block: 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.contact-strip .boxed {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xl);
  flex-wrap: wrap;
}

.contact-strip__item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--clr-white);
  font-size: var(--fs-small);
}

.contact-strip__item span:not(.contact-strip__icon) {
  color: rgba(255,255,255,0.75);
}

.contact-strip__item strong {
  color: var(--clr-white);
  font-weight: 500;
}

.contact-strip__icon {
  color: var(--clr-red);
  font-size: 14px;
  flex-shrink: 0;
}

.contact-strip__label {
  color: var(--clr-red);
  font-weight: 500;
}

/* --- Footer ------------------------------------------------ */

#site-footer {
  background: var(--clr-black-deep);
  padding-top: 52px;
  padding-bottom: 24px;
  color: rgba(255,255,255,0.65);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 44px;
}

.footer-col__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-col__about {
  font-size: var(--fs-tiny);
  line-height: 2;
  color: rgba(255,255,255,0.75);
  margin-bottom: 0;
}

.footer-col__head {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-white);
  margin-bottom: 16px;
  font-family: var(--font-body);
  font-weight: 500;
}

.footer-col__list li {
  margin-bottom: 7px;
}

.footer-col__list a {
  font-size: var(--fs-tiny);
  color: rgba(255,255,255,0.78);
  transition: color var(--transition-fast);
  line-height: 1.5;
}

.footer-col__list a:hover {
  color: var(--clr-white);
}

.footer-bottom {
  border-top: 0.5px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-label);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-bottom__legal {
  display: flex;
  gap: var(--space-xl);
}

.footer-bottom__legal a {
  color: rgba(255,255,255,0.72);
  transition: color var(--transition-fast);
}

.footer-bottom__legal a:hover {
  color: var(--clr-white);
}

/* --- Animationen ------------------------------------------- */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeInUp 0.55s ease both;
}

.animate-in--delay-1 { animation-delay: 0.1s; }
.animate-in--delay-2 { animation-delay: 0.2s; }
.animate-in--delay-3 { animation-delay: 0.3s; }
.animate-in--delay-4 { animation-delay: 0.4s; }

/* Scroll-reveal: Elemente starten unsichtbar, JS fügt .is-visible hinzu */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

/* --- Formular ---------------------------------------------- */

.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-size: var(--fs-tiny);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--clr-text);
  margin-bottom: 6px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--clr-gray-border);
  background: var(--clr-white);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--clr-text);
  transition: border-color var(--transition-fast);
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--clr-red);
  outline: none;
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
}

.form-error {
  font-size: var(--fs-tiny);
  color: var(--clr-red);
  margin-top: 4px;
}

/* --- Responsive -------------------------------------------- */

@media (max-width: 900px) {
  .tg-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .spec-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .datev-band .boxed {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-lg);
  }
}

@media (max-width: 620px) {
  .tg-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  #main-nav a {
    padding: 9px 10px;
    font-size: 12px;
  }

  .hero__title {
    font-size: clamp(38px, 11vw, 56px);
  }

  .btn-group {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-bottom__legal {
    flex-wrap: wrap;
    gap: var(--space-md);
  }

  .contact-strip .boxed {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }
}

/* --- Print ------------------------------------------------- */

@media print {
  #site-header,
  #header-spacer,
  .cta-bar,
  .datev-band { display: none; }
}

/* --- Zielgruppen-Seiten ------------------------------------ */

.intro-cols {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--space-2xl);
  align-items: start;
}

.aside-box {
  background: var(--clr-white);
  border-left: var(--border-accent);
  padding: var(--space-lg) var(--space-xl);
}

.aside-box__label {
  font-size: var(--fs-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-red);
  font-weight: 500;
  margin-bottom: var(--space-md);
}

.aside-list {
  list-style: none;
  font-size: var(--fs-small);
  color: var(--clr-text-muted);
  line-height: 2;
}

.aside-list li::before {
  content: '— ';
  color: var(--clr-red);
}

.leistungen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--clr-gray-border);
}

.leistung-block {
  background: var(--clr-white);
  padding: var(--space-xl) var(--space-lg);
}

.leistung-block__title {
  font-size: 15px;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--clr-black);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--clr-red);
}

.leistung-list {
  list-style: none;
  font-size: var(--fs-small);
  color: var(--clr-text-muted);
  line-height: 2;
}

.leistung-list li::before {
  content: '→ ';
  color: var(--clr-red);
  font-size: 11px;
}

.spez-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.spez-badge {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  text-transform: uppercase;
  color: var(--clr-black);
  letter-spacing: 0.02em;
  border-left: var(--border-accent);
  padding-left: var(--space-md);
  line-height: 1.2;
  margin-top: var(--space-sm);
}

.spez-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.spez-item h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--clr-black);
  margin-bottom: var(--space-sm);
}

.spez-item p {
  font-size: var(--fs-small);
  color: var(--clr-text-muted);
  line-height: 1.7;
  margin-bottom: 0;
}

.hint-block {
  display: flex;
  gap: var(--space-xl);
  align-items: flex-start;
  background: var(--clr-white);
  border-left: var(--border-accent);
  padding: var(--space-xl) var(--space-2xl);
}

.hint-block__icon {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--clr-red);
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}

@media (max-width: 900px) {
  .intro-cols,
  .spez-layout {
    grid-template-columns: 1fr;
  }

  .leistungen-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .spez-items {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .leistungen-grid {
    grid-template-columns: 1fr;
  }

  .hint-block {
    flex-direction: column;
    gap: var(--space-md);
    padding: var(--space-lg);
  }
}
