/* ==========================================================================
   Gries Tortechnik GmbH – Stylesheet
   Blau #225ea1 als Leitfarbe, Gelb #ffdd00 dezent als Schmuckfarbe
   ========================================================================== */

/* --- Schriften (lokal, DSGVO-konform) ----------------------------------- */
@font-face {
  font-family: 'GT America';
  src: url('../../fonts/gt_america_regular-webfont.woff2') format('woff2'),
       url('../../fonts/gt_america_regular-webfont.woff') format('woff');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'GT America';
  src: url('../../fonts/gt_america_bold-webfont.woff2') format('woff2'),
       url('../../fonts/gt_america_bold-webfont.woff') format('woff');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'GT America';
  src: url('../../fonts/gt_america_bold_italic-webfont.woff2') format('woff2'),
       url('../../fonts/gt_america_bold_italic-webfont.woff') format('woff');
  font-weight: 700; font-style: italic; font-display: swap;
}

/* --- Variablen ---------------------------------------------------------- */
:root {
  --gt-blau: #225ea1;
  --gt-blau-dunkel: #17416f;
  --gt-blau-tief: #0f2c4b;
  --gt-gelb: #ffdd00;
  --gt-grau: #f4f6f8;
  --gt-grau-linie: #e2e6ea;
  --gt-text: #1d2429;
  --gt-text-hell: #5b666f;

  --bs-body-font-family: 'GT America', 'Helvetica Neue', Arial, sans-serif;
  --bs-body-color: var(--gt-text);
  --bs-link-color: var(--gt-blau);
  --bs-link-hover-color: var(--gt-blau-dunkel);
}

/* --- Basis -------------------------------------------------------------- */
html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--bs-body-font-family);
  color: var(--gt-text);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { font-weight: 700; letter-spacing: -.015em; line-height: 1.2; }
h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

a { text-decoration: none; }
p { color: var(--gt-text-hell); }
.lead { font-size: 1.2rem; line-height: 1.65; color: var(--gt-text-hell); }

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-grau { background: var(--gt-grau); }
.section-blau { background: var(--gt-blau); color: #fff; }
.section-blau h1, .section-blau h2, .section-blau h3 { color: #fff; }
.section-blau p { color: rgba(255,255,255,.82); }

/* Kleine Vorüberschrift mit gelbem Strich – der Schmuckfarben-Einsatz */
.kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gt-blau); margin-bottom: .9rem;
}
.kicker::before {
  content: ''; width: 28px; height: 3px; background: var(--gt-gelb); flex: none;
}
.section-blau .kicker { color: #fff; }

.titel-strich { position: relative; padding-bottom: 1rem; margin-bottom: 1.4rem; }
.titel-strich::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 56px; height: 3px; background: var(--gt-gelb);
}
.text-center .titel-strich::after { left: 50%; transform: translateX(-50%); }

/* --- Buttons ------------------------------------------------------------ */
.btn { border-radius: 2px; font-weight: 700; padding: .8rem 1.6rem; letter-spacing: .01em; }
.btn-gt {
  background: var(--gt-blau); color: #fff; border: 2px solid var(--gt-blau);
  transition: background .18s, border-color .18s, color .18s;
}
.btn-gt:hover, .btn-gt:focus { background: var(--gt-blau-dunkel); border-color: var(--gt-blau-dunkel); color: #fff; }
.btn-gt-outline {
  background: transparent; color: var(--gt-blau); border: 2px solid var(--gt-blau);
}
.btn-gt-outline:hover { background: var(--gt-blau); color: #fff; }
.btn-gt-hell { background: #fff; color: var(--gt-blau); border: 2px solid #fff; }
.btn-gt-hell:hover { background: var(--gt-gelb); border-color: var(--gt-gelb); color: var(--gt-text); }
.btn-gt-geist { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.55); }
.btn-gt-geist:hover { background: #fff; color: var(--gt-blau); border-color: #fff; }

/* --- Topbar ------------------------------------------------------------- */
.topbar {
  background: var(--gt-blau-tief); color: rgba(255,255,255,.78);
  font-size: .85rem; padding: .5rem 0;
}
.topbar a { color: rgba(255,255,255,.85); }
.topbar a:hover { color: var(--gt-gelb); }
.topbar .trenner { color: rgba(255,255,255,.28); margin: 0 .85rem; }

/* --- Navigation --------------------------------------------------------- */
.navbar-gt {
  background: #fff; border-bottom: 1px solid var(--gt-grau-linie);
  padding: .85rem 0; position: sticky; top: 0; z-index: 1030;
}
.navbar-gt .navbar-brand img { height: 46px; width: auto; display: block; }
.navbar-gt .nav-link {
  color: var(--gt-text); font-weight: 700; font-size: .95rem;
  padding: .55rem .95rem !important; position: relative;
}
.navbar-gt .nav-link::after {
  content: ''; position: absolute; left: .95rem; right: .95rem; bottom: .25rem;
  height: 3px; background: var(--gt-gelb); transform: scaleX(0);
  transform-origin: left; transition: transform .2s;
}
.navbar-gt .nav-link:hover::after,
.navbar-gt .nav-item.active > .nav-link::after { transform: scaleX(1); }
.navbar-gt .nav-link:hover, .navbar-gt .nav-item.active > .nav-link { color: var(--gt-blau); }
.navbar-gt .dropdown-menu {
  border: 0; border-top: 3px solid var(--gt-gelb); border-radius: 0;
  box-shadow: 0 14px 40px rgba(15,44,75,.14); padding: .5rem 0; margin-top: .35rem;
}
.navbar-gt .dropdown-item { font-size: .95rem; padding: .55rem 1.25rem; font-weight: 400; }
.navbar-gt .dropdown-item:hover, .navbar-gt .dropdown-item:focus { background: var(--gt-grau); color: var(--gt-blau); }
.navbar-toggler { border: 1px solid var(--gt-grau-linie); border-radius: 2px; }
.navbar-toggler:focus { box-shadow: none; }

@media (min-width: 992px) {
  .navbar-gt .dropdown:hover > .dropdown-menu { display: block; }
}

/* --- Hero / Slider ------------------------------------------------------ */
.hero { position: relative; }
.hero .carousel-item { height: clamp(430px, 68vh, 660px); }
.hero .hero-bild {
  position: absolute; inset: 0; background-size: cover; background-position: center;
}
.hero .hero-bild::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(15,44,75,.88) 0%, rgba(34,94,161,.72) 45%, rgba(34,94,161,.28) 100%);
}
.hero .carousel-caption {
  position: absolute; inset: 0; display: flex; align-items: center;
  text-align: left; padding: 0; right: 0; left: 0; bottom: 0;
}
.hero .hero-inhalt { max-width: 660px; }
.hero h1 { color: #fff; margin-bottom: 1.1rem; }
.hero p { color: rgba(255,255,255,.9); font-size: 1.15rem; max-width: 540px; }
.hero .kicker { color: #fff; }
.hero .carousel-indicators { margin-bottom: 1.75rem; }
.hero .carousel-indicators [data-bs-target] {
  width: 34px; height: 4px; border: 0; background: rgba(255,255,255,.45); opacity: 1;
}
.hero .carousel-indicators .active { background: var(--gt-gelb); }
.hero .carousel-control-prev, .hero .carousel-control-next { width: 6%; opacity: .55; }

/* --- Seitenkopf (Unterseiten) ------------------------------------------- */
.seitenkopf { position: relative; background: var(--gt-blau-tief); }
.seitenkopf .kopf-bild {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: .38;
}
.seitenkopf .kopf-inhalt { position: relative; padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.4rem, 5vw, 3.4rem); }
.seitenkopf h1 { color: #fff; margin: 0 0 .6rem; }
.seitenkopf .breadcrumb { margin: 0; font-size: .9rem; }
.seitenkopf .breadcrumb a { color: rgba(255,255,255,.8); }
.seitenkopf .breadcrumb a:hover { color: var(--gt-gelb); }
.seitenkopf .breadcrumb-item.active { color: rgba(255,255,255,.6); }
.seitenkopf .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.4); }

/* --- Karten ------------------------------------------------------------- */
.karte {
  background: #fff; border: 1px solid var(--gt-grau-linie); height: 100%;
  transition: box-shadow .22s, transform .22s, border-color .22s;
  display: flex; flex-direction: column;
}
.karte:hover { box-shadow: 0 18px 44px rgba(15,44,75,.12); transform: translateY(-4px); border-color: #fff; }
.karte-bild { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--gt-grau); }
.karte-bild img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.karte:hover .karte-bild img { transform: scale(1.05); }
.karte-body { padding: 1.5rem 1.6rem 1.7rem; flex: 1 1 auto; display: flex; flex-direction: column; }
.karte-body h3 { font-size: 1.2rem; margin-bottom: .55rem; }
.karte-body p { font-size: .97rem; margin-bottom: 1.1rem; }
.karte-link {
  margin-top: auto; font-weight: 700; font-size: .92rem; color: var(--gt-blau);
  display: inline-flex; align-items: center; gap: .45rem;
}
.karte-link svg { transition: transform .2s; }
.karte:hover .karte-link svg { transform: translateX(4px); }

/* --- Merkmal-/Icon-Blöcke ----------------------------------------------- */
.merkmal { display: flex; gap: 1.1rem; }
.merkmal-icon {
  flex: none; width: 52px; height: 52px; display: grid; place-items: center;
  background: rgba(34,94,161,.08); color: var(--gt-blau);
}
.section-blau .merkmal-icon { background: rgba(255,255,255,.14); color: var(--gt-gelb); }
.merkmal h3 { font-size: 1.08rem; margin-bottom: .35rem; }
.merkmal p { font-size: .96rem; margin: 0; }

/* --- Vorteilsliste ------------------------------------------------------ */
.liste-check { list-style: none; padding: 0; margin: 0; }
.liste-check li {
  position: relative; padding-left: 1.9rem; margin-bottom: .7rem; color: var(--gt-text-hell);
}
.liste-check li::before {
  content: ''; position: absolute; left: 0; top: .62em; width: 10px; height: 10px;
  background: var(--gt-gelb);
}
.section-blau .liste-check li { color: rgba(255,255,255,.85); }

/* --- Zahlen ------------------------------------------------------------- */
.zahl { font-size: clamp(2.1rem, 4vw, 3rem); font-weight: 700; line-height: 1; color: #fff; }
.zahl-label { font-size: .88rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.72); }

/* --- Galerie ------------------------------------------------------------ */
.galerie-item { display: block; position: relative; overflow: hidden; aspect-ratio: 3/2; background: var(--gt-grau); }
.galerie-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.galerie-item::after {
  content: ''; position: absolute; inset: 0; background: rgba(34,94,161,0); transition: background .3s;
}
.galerie-item:hover img { transform: scale(1.06); }
.galerie-item:hover::after { background: rgba(34,94,161,.28); }

/* --- CTA-Band ----------------------------------------------------------- */
.cta-band { background: var(--gt-blau); color: #fff; padding: 3rem 0; }
.cta-band h2 { color: #fff; margin: 0; }
.cta-band p { color: rgba(255,255,255,.82); margin: .4rem 0 0; }

/* --- Kontaktkacheln ----------------------------------------------------- */
.kontaktkachel {
  background: #fff; border: 1px solid var(--gt-grau-linie); padding: 2rem 1.75rem;
  height: 100%; border-top: 3px solid var(--gt-gelb);
}
.kontaktkachel h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.kontaktkachel a { color: var(--gt-blau); font-weight: 700; }

/* --- Downloads ---------------------------------------------------------- */
.download-liste { list-style: none; padding: 0; margin: 0; }
.download-liste li { border-bottom: 1px solid var(--gt-grau-linie); }
.download-liste a {
  display: flex; align-items: center; gap: .9rem; padding: .95rem .25rem;
  color: var(--gt-text); font-weight: 700; font-size: .98rem;
}
.download-liste a:hover { color: var(--gt-blau); }
.download-liste svg { flex: none; color: var(--gt-blau); }
.download-liste .groesse { margin-left: auto; font-weight: 400; font-size: .85rem; color: var(--gt-text-hell); }

/* --- Akkordeon ---------------------------------------------------------- */
.accordion-button { font-weight: 700; color: var(--gt-text); }
.accordion-button:not(.collapsed) { background: rgba(34,94,161,.06); color: var(--gt-blau); box-shadow: none; }
.accordion-button:focus { box-shadow: none; border-color: var(--gt-grau-linie); }
.accordion-item { border-color: var(--gt-grau-linie); }

/* --- Karte / Jotform ---------------------------------------------------- */
.karten-rahmen, .formular-rahmen { border: 1px solid var(--gt-grau-linie); background: #fff; }
.karten-rahmen iframe { display: block; width: 100%; height: 440px; border: 0; }
.karten-platzhalter {
  position: relative; min-height: 440px; display: grid; place-items: center;
  background: var(--gt-grau); text-align: center; padding: 2rem;
}

/* --- Footer ------------------------------------------------------------- */
.footer { background: var(--gt-blau-tief); color: rgba(255,255,255,.7); padding: 4rem 0 0; font-size: .95rem; }
.footer h4 {
  color: #fff; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 1.25rem; padding-bottom: .7rem; position: relative;
}
.footer h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 26px; height: 2px; background: var(--gt-gelb); }
.footer a { color: rgba(255,255,255,.7); }
.footer a:hover { color: var(--gt-gelb); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: .5rem; }
.footer .footer-logo { height: 42px; margin-bottom: 1.25rem; }
.footer-unten {
  margin-top: 3rem; border-top: 1px solid rgba(255,255,255,.12); padding: 1.3rem 0;
  font-size: .87rem; color: rgba(255,255,255,.5);
}
.footer-unten a { color: rgba(255,255,255,.6); }

/* --- Griesmann (Maskottchen) -------------------------------------------- */
.griesmann-block { position: relative; text-align: center; }
.griesmann { height: 300px; width: auto; display: block; margin: 0 auto; }
.griesmann-sprechblase {
  position: absolute; top: 6px; left: -18px; max-width: 190px;
  background: var(--gt-gelb); color: var(--gt-text);
  font-size: .92rem; font-weight: 700; line-height: 1.35;
  padding: .7rem .95rem; text-align: left;
}
.griesmann-sprechblase::after {
  content: ''; position: absolute; right: -10px; bottom: 12px;
  border: 10px solid transparent; border-left-color: var(--gt-gelb); border-right: 0;
}

@media (min-width: 1200px) {
  .griesmann { height: 340px; }
  .griesmann-sprechblase { left: -6px; }
}

/* Bis Tablet: Figur und Blase nebeneinander unter dem Text */
@media (max-width: 991.98px) {
  .griesmann-block {
    display: flex; align-items: center; justify-content: center;
    gap: 1rem; margin-top: 2.5rem;
  }
  .griesmann { height: 200px; order: 2; margin: 0; }
  .griesmann-sprechblase {
    position: relative; top: auto; left: auto; order: 1;
    max-width: 210px; font-size: .88rem;
  }
  .griesmann-sprechblase::after { right: -10px; bottom: auto; top: 50%; margin-top: -10px; }
}

@media (max-width: 400px) {
  .griesmann { height: 165px; }
  .griesmann-sprechblase { max-width: 150px; padding: .55rem .75rem; font-size: .82rem; }
}

/* --- Hilfsklassen ------------------------------------------------------- */
.bild-rahmen { position: relative; isolation: isolate; }
.bild-rahmen img { width: 100%; height: auto; display: block; position: relative; z-index: 1; }
.bild-rahmen::before {
  content: ''; position: absolute; left: -14px; bottom: -14px; width: 96px; height: 96px;
  background: var(--gt-gelb); z-index: 0;
}
.bild-cover { width: 100%; height: 100%; object-fit: cover; }
.text-blau { color: var(--gt-blau) !important; }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--gt-gelb); color: var(--gt-text);
  padding: .75rem 1.25rem; z-index: 2000; font-weight: 700;
}
.skip-link:focus { left: 0; }

@media (max-width: 991.98px) {
  .navbar-gt .navbar-collapse { padding: 1rem 0 .5rem; }
  .navbar-gt .nav-link::after { display: none; }
  .bild-rahmen::before { display: none; }
}
