/* ==========================================================================
   Servus Gelting — B2B-Info (/b2b)

   1:1 nach dem Canvas-Rendering. Quellen:
   canvas/roesterei/seite-b2b-fusion.jsx — Aufbau O4
   canvas/roesterei/seite-b2b.jsx        — OParts (Copy, Leistungen, Felder)

   Flächenfolge: Hero auf Espresso, Zusammenarbeit auf der Seitenfläche,
   Leistungen wieder auf Espresso, Kontakt auf Cream-2. Die beiden
   Espresso-Blöcke sind bewusst durch den hellen Abschnitt getrennt.

   Die Formularfelder haben nur eine Unterstreichung statt eines
   Rahmens — deshalb hier eigene Regeln statt der DS-Grundschicht.
   ========================================================================== */


/* --------------------------------------------------------------------------
   Bänder
   -------------------------------------------------------------------------- */

.band--dunkel {
  background: var(--espresso);
  color: var(--cream);
}

.band--karte-oben {
  background: var(--flaeche-karte);
  border-top: 1px solid var(--linie);
}


/* --------------------------------------------------------------------------
   1. Hero — auf Espresso, mit Mono-Rail rechts
   -------------------------------------------------------------------------- */

.b2b-hero {
  padding-block: 92px 88px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 80px;
  align-items: end;
}

.b2b-hero__ey {
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--tan);
}

.b2b-hero__titel {
  margin-top: 20px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 96px;
  line-height: .98;
  letter-spacing: .012em;
  text-transform: uppercase;
  color: var(--cream);
}

.b2b-hero__vorspann {
  max-width: 660px;
  margin-top: 26px;
  font-size: 19px;
  line-height: 1.65;
  color: rgba(246, 238, 223, .8);
}

.b2b-hero__knoepfe {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

/* Zweiter Knopf: nur Kontur in der hellen Hairline, kein Rahmen in Cream */
.b2b-hero__zweit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border: 1.5px solid rgba(246, 238, 223, .2);
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cream);
  transition: border-color var(--dur-fast) var(--ease-out);
}
.b2b-hero__zweit:hover { border-color: rgba(246, 238, 223, .6); }

/* Mono-Rail: vier Eckdaten untereinander */
.b2b-rail { padding-bottom: 8px; }

.b2b-rail > div {
  padding: 13px 0;
  border-top: 1px solid rgba(246, 238, 223, .2);
}

.b2b-rail dt {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1.9;
  color: rgba(246, 238, 223, .5);
}

.b2b-rail dd {
  margin-top: 5px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: .02em;
  line-height: 1.9;
  color: var(--cream);
}


/* --------------------------------------------------------------------------
   2. Zusammenarbeit
   -------------------------------------------------------------------------- */

.zusammenarbeit {
  padding-block: 84px 88px;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 72px;
  align-items: start;
}

.zusammenarbeit .eyebrow { display: block; margin-bottom: 14px; }
.zusammenarbeit .h2 { font-size: 50px; }

.zusammenarbeit p {
  max-width: 640px;
  font-size: 17.5px;
  line-height: 1.7;
  color: var(--muted-brown);
}

.zusammenarbeit p + p { margin-top: 18px; }


/* --------------------------------------------------------------------------
   3. Leistungen — Tabelle auf Espresso

   Läuft nicht im Seitenraster, sondern in einer eigenen Spalte von
   1000px, zentriert.
   -------------------------------------------------------------------------- */

.leistungen { padding-block: 88px 92px; }

.leistungen__spalte {
  width: min(100%, 1000px);
  margin-inline: auto;
  padding-inline: clamp(20px, 6.667vw, 0px);
}

.leistungen .eyebrow { display: block; margin-bottom: 32px; color: var(--tan); }

.leistungen__liste { border-top: 1px solid rgba(246, 238, 223, .24); }

.leistung {
  display: grid;
  grid-template-columns: 80px 300px 1fr;
  gap: 40px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid rgba(246, 238, 223, .24);
}

.leistung__nr {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: .16em;
  line-height: 1.9;
  color: var(--tan);
}

.leistung__titel {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  line-height: 1.02;
  letter-spacing: .012em;
  text-transform: uppercase;
  color: var(--cream);
}

.leistung__text {
  font-size: 16.5px;
  line-height: 1.65;
  color: rgba(246, 238, 223, .75);
}


/* --------------------------------------------------------------------------
   4. Kontakt
   -------------------------------------------------------------------------- */

.b2b-kontakt {
  padding-block: 92px 100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: start;
}

.b2b-kontakt .eyebrow { display: block; margin-bottom: 16px; }
.b2b-kontakt .h2 { font-size: 64px; }

.b2b-kontakt__vorspann {
  max-width: 440px;
  margin: 22px 0 40px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted-brown);
}

.b2b-kontakt__daten { border-top: 1px solid var(--linie); }

.b2b-kontakt__daten > div {
  padding: 16px 0;
  border-bottom: 1px solid var(--linie);
}

.b2b-label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--muted-brown);
}

.b2b-kontakt__wert {
  margin-top: 7px;
  font-size: 18px;
  font-weight: 600;
  color: var(--espresso);
}

.b2b-kontakt__wert--mail { color: var(--amber); }


/* --------------------------------------------------------------------------
   5. Formular — Felder nur unterstrichen
   -------------------------------------------------------------------------- */

.b2b-form__raster {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 32px;
}

.b2b-feld {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Kein Rahmen, nur eine Linie unter dem Feld. Die 4px der
   DS-Grundschicht bleiben aber stehen — die Vorlage setzt sie hier
   nicht zurück, und sie runden die Enden der Linie ganz leicht. */
.b2b-feld input,
.b2b-feld textarea {
  width: 100%;
  height: 42px;
  padding: 0 2px;
  border: none;
  border-bottom: 1.5px solid var(--linie);
  background: transparent;
  color: var(--espresso);
  font-family: var(--font-body);
  font-size: 16px;
  transition: border-color var(--dur-fast) var(--ease-out);
}

.b2b-feld input::placeholder,
.b2b-feld textarea::placeholder { color: rgba(30, 22, 16, .38); }

.b2b-feld input:focus,
.b2b-feld textarea:focus {
  outline: none;
  border-bottom-color: var(--amber);
}

.b2b-feld--breit { margin-top: 26px; }

.b2b-feld textarea {
  height: 96px;
  padding: 10px 2px;
  line-height: 1.5;
  resize: vertical;
}

.b2b-form__fuss {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 34px;
}

.b2b-form__hinweis {
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--muted-brown);
}

/* Verweise in Hinweiszeile und Danke-Kasten müssen als solche zu
   erkennen sein — basis.css stellt alle Verweise glatt, und hier stehen
   die Datenschutzerklärung und die Mailadresse, auf die es ankommt.
   Wie in recht.css, siehe RECHTSTEXTE in CLAUDE.md. */
.b2b-form__hinweis a,
.b2b-danke a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.b2b-danke a { color: inherit; }

/* Danke-Ansicht nach dem Absenden */
.b2b-danke {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.b2b-danke[hidden],
.b2b-form[hidden] { display: none; }

.b2b-danke__haken {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
}

.b2b-danke__titel {
  margin-top: 6px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  line-height: 1.02;
  letter-spacing: .012em;
  text-transform: uppercase;
  color: var(--espresso);
}

.b2b-danke p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted-brown);
}


/* --------------------------------------------------------------------------
   6. Schmalere Fenster

   ACHTUNG: Das Mobil-Artboard „08 · B2B-Info — Mobile 390"
   (SeiteB2BFusionMobile) ist hier NICHT umgesetzt. Was folgt, bricht
   nur die Desktop-Fassung um.
   -------------------------------------------------------------------------- */

@media (max-width: 1200px) {
  .b2b-hero,
  .zusammenarbeit,
  .b2b-kontakt { grid-template-columns: 1fr; gap: 48px; }

  .leistung { grid-template-columns: 60px 1fr; gap: 12px 24px; }
  .leistung__text { grid-column: 2; }
}

@media (max-width: 900px) {
  .b2b-hero__titel { font-size: clamp(40px, 9vw, 96px); }
  .b2b-kontakt .h2 { font-size: clamp(36px, 8vw, 64px); }
  .zusammenarbeit .h2 { font-size: clamp(30px, 6.5vw, 50px); }
  .b2b-form__raster { grid-template-columns: 1fr; }
  .b2b-form__fuss { flex-wrap: wrap; gap: 16px; }
}


/* --------------------------------------------------------------------------
   Mobil — Artboard „08 · B2B-Info — Mobile 390"
   Gemessen gegen die eigenständige Artboard-Ausgabe des Kunden
   (_referenz/b2b-mobile.html), geprüft mit _abgleich.html.

   Eine Textstelle bleibt bewusst anders: Das Artboard nennt im
   Kontaktblock hallo@servus-gelting.de. Die Adresse ist erfunden, siehe
   ADRESSE in CLAUDE.md; bei uns steht die geprüfte.
   -------------------------------------------------------------------------- */

@media (max-width: 767px) {

  /* Die Vorlage setzt durchgehend 24px Seitenrand; die geteilte
     Grundregel käme bei 390px auf 26px. */
  .b2b-hero, .zusammenarbeit, .b2b-kontakt { padding-inline: 24px; }
  .leistungen__spalte { padding-inline: 24px; }

  /* --- Hero -------------------------------------------------------------- */
  .b2b-hero { display: block; padding-block: 40px 44px; }

  .b2b-hero__ey { font-size: 10.5px; line-height: 1.9; letter-spacing: .2em; }

  .b2b-hero__titel {
    margin-top: 16px;
    font-size: 46px;
    line-height: .98;
    letter-spacing: .01em;
  }

  .b2b-hero__vorspann { margin: 18px 0 28px; font-size: 15px; line-height: 1.6; }

  /* Beide Knöpfe untereinander über die volle Breite. */
  .b2b-hero__knoepfe { flex-direction: column; flex-wrap: nowrap; gap: 12px; margin-top: 0; }

  .b2b-hero__knoepfe .btn {
    display: flex;
    width: 100%;
    justify-content: center;
    padding: 15px 26px;
    font-size: 13px;
    letter-spacing: .1em;
    border-radius: 8px;
  }

  .b2b-hero__zweit {
    display: flex;
    width: 100%;
    justify-content: center;
    padding: 16px 20px;
    font-size: 12.5px;
    letter-spacing: .12em;
    border-radius: 6px;
  }

  .b2b-rail { margin-top: 34px; padding-bottom: 0; }
  .b2b-rail > div { padding: 12px 0; }
  .b2b-rail dt { font-size: 9.5px; letter-spacing: .16em; }
  .b2b-rail dd { margin-top: 5px; font-size: 12px; }

  /* --- Zusammenarbeit ------------------------------------------------------ */
  .zusammenarbeit { display: block; padding-block: 44px 46px; }

  .zusammenarbeit .eyebrow {
    display: block;
    margin-bottom: 12px;
    font-size: 10.5px;
    letter-spacing: .26em;
  }
  .zusammenarbeit .h2 { font-size: 32px; line-height: 1.04; letter-spacing: .01em; }
  .zusammenarbeit p { font-size: 15px; line-height: 1.6; margin-top: 16px; }
  .zusammenarbeit p + p { margin-top: 14px; }

  /* --- Leistungen ----------------------------------------------------------
     Aus drei Spalten je Zeile wird ein Block: Nummer, Titel, Text
     untereinander. */
  .leistungen { padding-block: 46px 48px; }
  .leistungen__spalte { width: auto; }
  .leistungen .eyebrow { margin-bottom: 24px; font-size: 10.5px; letter-spacing: .26em; }

  .leistung { display: block; padding: 24px 0; }
  .leistung__nr { display: block; font-size: 11.5px; line-height: 1.9; }
  .leistung__titel {
    margin-top: 10px;
    font-size: 26px;
    line-height: 1.04;
    letter-spacing: .01em;
  }
  .leistung__text { margin-top: 10px; font-size: 15px; line-height: 1.6; }

  /* --- Kontakt --------------------------------------------------------------- */
  /* Die Kontaktdaten stehen im Artboard unter dem Formular, bei uns
     im Textkasten darueber. Der Kasten wird aufgeloest, dann greift die
     Ordnung — dasselbe Mittel wie bei „Alle Sorten" auf Sorten-Detail. */
  .b2b-kontakt {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-block: 46px 50px;
  }
  .b2b-kontakt > div:first-child { display: contents; }
  .b2b-kontakt .eyebrow { order: 1; }
  .b2b-kontakt .h2 { order: 2; }
  .b2b-kontakt__vorspann { order: 3; }
  /* Das Formular steckt in einem eigenen Kasten (mit der Danke-Ansicht
     darin); die Ordnung gehoert deshalb an ihn, nicht an das form. */
  .b2b-kontakt > div:last-child { order: 4; }
  .b2b-kontakt__daten { order: 5; }

  .b2b-kontakt .eyebrow {
    display: block;
    margin-bottom: 12px;
    font-size: 10.5px;
    letter-spacing: .26em;
  }
  .b2b-kontakt .h2 { font-size: 36px; line-height: 1.04; letter-spacing: .01em; }
  .b2b-kontakt__vorspann { max-width: none; margin: 16px 0 32px; font-size: 15px; line-height: 1.6; }

  .b2b-form__raster { display: flex; flex-direction: column; gap: 22px; }
  .b2b-feld { gap: 8px; }
  .b2b-label { font-size: 10.5px; }
  .b2b-feld input { height: 44px; padding: 0 2px; }
  .b2b-feld textarea { height: 92px; padding: 10px 2px; }

  /* Im Artboard steht der Knopf ueber dem Hinweis, im Aufbau darunter. */
  .b2b-form__fuss {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 28px;
  }
  .b2b-form__fuss .btn {
    order: 1;
    display: flex;
    width: 100%;
    justify-content: center;
    padding: 15px 26px;
    font-size: 13px;
    letter-spacing: .1em;
    border-radius: 8px;
  }
  .b2b-form__hinweis { order: 2; margin-top: 14px; font-size: 11px; line-height: 1.9; }

  .b2b-kontakt__daten { margin-top: 36px; }
  .b2b-kontakt__daten > div { padding: 14px 0; }
  .b2b-kontakt__wert { margin-top: 7px; font-size: 17px; line-height: 1.55; }
}
