/* ==========================================================================
   TNA Baumaschinentechnik – Stylesheet
   Übernommen aus dem Contao-Theme "TNA", aufgeräumt für die statische Seite.

   Inhalt:
   1. Schriften
   2. Grundlagen
   3. Layout (Bänder, Inhaltsbreite)
   4. Überschriften & Text
   5. Kopfbereich & Navigation
   6. Startseite (Slider, Neuigkeiten, Partner)
   7. Seitentitel (Bildbanner)
   8. Unterseiten (Verkauf, Team, …)
   9. Formular
   10. Karte
   11. Fußbereich
   12. Lightbox
   13. Responsive Anpassungen
   ========================================================================== */


/* 1. Schriften
   ========================================================================== */

/* Raleway als variable Schrift: eine Datei enthält alle Stärken von 100 bis 900
   als echte Schnitte (verwendet werden 300, 400, 600, 700 und 800).
   WOFF2 für alle aktuellen Browser, TTF als Rückfall. */
@font-face {
  font-family: 'Raleway';
  src: url('../fonts/Raleway-VariableFont_wght.woff2') format('woff2'),
       url('../fonts/Raleway-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Raleway';
  src: url('../fonts/Raleway-Italic-VariableFont_wght.woff2') format('woff2'),
       url('../fonts/Raleway-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}


/* 2. Grundlagen
   ========================================================================== */

:root {
  --akzent: #c8451c;
  --text: #333;
  --hintergrund-alt: #f8f9f9;
  --linie: #e9e9e9;
  --header-hoehe: 75px;
}

body,
form,
figure {
  margin: 0;
  padding: 0;
}

body {
  font: .875rem/23.8px Raleway, sans-serif;
  font-weight: 400;
  color: var(--text);
}

strong,
b {
  font-weight: bold;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
}

a,
a:link,
a:visited,
a:active {
  text-decoration: none;
  color: var(--text);
}

input,
textarea,
button {
  font-family: Raleway, sans-serif;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}


/* 3. Layout
   ========================================================================== */

/* Jede Seite besteht aus "Bändern" über die volle Breite; jedes zweite ist hellgrau. */
.band--alt {
  background-color: var(--hintergrund-alt);
}

/* volle Breite (Bildbanner, Slider, Karte) */
.wide {
  width: 100%;
  margin: 0;
  padding: 0;
}

/* zentrierte Inhaltsbreite */
.tight {
  max-width: 1210px;
  margin-right: auto;
  margin-left: auto;
  padding: 70px 35px;
}

/* Inhaltsblöcke umschließen ihre (schwebenden) Bilder */
#main .wide,
#main .tight,
.text,
.image,
.link {
  overflow: hidden;
}

#main {
  margin-top: var(--header-hoehe);
}

.float-left {
  float: left;
}

.float-right {
  float: right;
}

.bild-mittig {
  text-align: center;
}

.image-center figure {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}


/* 4. Überschriften & Text
   ========================================================================== */

h1 {
  text-align: left;
}

h2 {
  text-align: center;
  font: 700 14px/15.4px Raleway, sans-serif;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 2px;
}

h3 {
  margin-top: 0;
  text-align: center;
  font: 800 40px/48px Raleway, sans-serif;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 3.5px;
}

h4 {
  margin-top: 35px;
  text-align: left;
  font: 800 30px/30px Raleway, sans-serif;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 3.5px;
}


/* 5. Kopfbereich & Navigation
   ========================================================================== */

#header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  background-color: #fff;
}

#header .tight {
  padding: 0 35px;
}

#logo {
  float: left;
  margin-top: 2.5px;
}

#logo img {
  display: block;
}

#mainmenu {
  float: right;
  height: var(--header-hoehe);
}

#mainmenu ul {
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

#mainmenu li {
  display: inline-block;
  height: 100%;
  padding: 0 17px;
  line-height: var(--header-hoehe);
  vertical-align: middle;
}

#mainmenu a {
  vertical-align: middle;
  font-size: 13px;
  font-weight: 600;
  line-height: var(--header-hoehe);
  color: #000;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#mainmenu li:hover,
#mainmenu li:hover a {
  background-color: #ededed;
  color: var(--akzent);
  transition: all .5s ease-in-out;
}

/* Menü-Schalter (nur auf kleinen Bildschirmen sichtbar) */
#menu-toggle {
  display: none;
  float: right;
  padding: 0;
  border: 0;
  background: none;
  font-size: 22px;
  line-height: var(--header-hoehe);
  color: var(--text);
  cursor: pointer;
}


/* 6. Startseite
   ========================================================================== */

/* --- Slider (allgemein, gesteuert durch js/main.js) --- */
.slider {
  position: relative;
  overflow: hidden;
}

.slider-track {
  display: flex;
}

.slider-track > * {
  flex: 0 0 100%;
}

/* --- Großer Bild-Slider --- */
#start-slider {
  height: 536px;
}

#start-slider .start-slider-element {
  padding-top: 150px;
  padding-bottom: 150px;
  text-align: center;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: auto 100%;
}

#start-slider .start-slider-mainline {
  margin: 0;
  padding: 0;
  text-align: center;
  font: 800 75px Raleway, sans-serif;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 4px;
  text-shadow: rgba(0, 0, 0, .15) 0 2px 8px;
}

#start-slider .start-slider-mainline p {
  margin: 0;
  padding-right: 10px;
  padding-left: 10px;
}

#start-slider .start-slider-subline {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 22px;
  font-weight: 300;
  line-height: 37.4px;
  color: #fff;
  text-shadow: rgba(0, 0, 0, .15) 0 2px 8px;
}

#start-slider .button {
  margin-right: auto;
  margin-left: auto;
  padding: 12px 24px;
  text-align: center;
  background-color: var(--akzent);
  border: 1px solid var(--akzent);
  border-radius: 2px;
  font-size: 17px;
  font-weight: 600;
  line-height: 50px;
  color: #fff;
  text-transform: uppercase;
}

#start-slider-verkauf           { background-image: url('../img/slider/yanmar_vio38_7/ViO38-7_5_950x350.webp'); }
#start-slider-nach-verkauf      { background-image: url('../img/slider/yanmar_v8e/v8e_6_950x350.webp'); }
#start-slider-vermietung        { background-image: url('../img/slider/yanmar_v120/v120_3_950x350.webp'); }
#start-slider-nach-vermietung   { background-image: url('../img/slider/yanmar_sv100_1_2pb/SV100-7-2pb_2_950x350.webp'); }
#start-slider-service           { background-image: url('../img/slider/yanmar_vio38_7/ViO38-7_6_950x350.webp'); }
#start-slider-nach-service      { background-image: url('../img/slider/yanmar_v8e/v8e_3_950x350.webp'); }
#start-slider-ersatzteile       { background-image: url('../img/slider/yanmar_v120/v120_2_950x350.webp'); }
#start-slider-nach-ersatzteile  { background-image: url('../img/slider/yanmar_sv100_1_2pb/SV100-7-2pb_1_950x350.webp'); }

/* --- Neuigkeiten --- */
#start-aktuelles .news {
  border-bottom: 1px solid var(--linie);
}

#start-aktuelles .news:last-child {
  border: 0;
}

/* --- Partner-Logos --- */
#start-partner .partner-logo {
  min-width: 300px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}


/* 7. Seitentitel (Bildbanner oben auf den Unterseiten)
   ========================================================================== */

.seitentitel {
  height: 350px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.seitentitel p {
  margin-right: auto;
  margin-left: auto;
  padding-top: 120px;
  padding-bottom: 120px;
  text-align: center;
  font-size: 35px;
  font-weight: 300;
  line-height: 45px;
  color: #fff;
  text-shadow: rgba(0, 0, 0, .5) 0 2px 8px;
}

#verkauf-titel               { background-image: url('../img/titelbilder/verkauf.webp'); }
#case-titel                  { background-image: url('../img/titelbilder/case_seitentitel_950x316.webp'); background-position: center bottom; }
#yanmar-titel                { background-image: url('../img/neue-maschinen/yanmar/seitentitel_verkauf_yanmar_ultrawide_1920x639.webp'); }
#gebrauchte-maschinen-titel  { background-image: url('../img/titelbilder/gebrauchte_maschinen_titel.webp'); }
#vermietung-titel            { background-image: url('../img/titelbilder/vermietung.webp'); }
#ersatzteile-titel           { background-image: url('../img/titelbilder/yanmar_titel_950x316.webp'); }
#service-titel               { background-image: url('../img/titelbilder/service.webp'); }
#team-titel                  { background-image: url('../img/titelbilder/team1.webp'); }
#jobs-titel                  { background-image: url('../img/titelbilder/team2.webp'); }
#kontakt-titel               { background-image: url('../img/titelbilder/kontakt2.webp'); }
#impressum-titel             { background-image: url('../img/titelbilder/impressum.webp'); }
#datenschutz-titel           { background-image: url('../img/titelbilder/datenschutz1.webp'); }
#geschaeftsbedingungen-titel { background-image: url('../img/titelbilder/geschaeftsbedingungen.webp'); }
#lieferbedingungen-titel     { background-image: url('../img/titelbilder/lieferbedingungen.webp'); }


/* 8. Unterseiten
   ========================================================================== */

/* --- Verkauf: Kacheln CASE / Yanmar / Gebraucht --- */
#verkauf .verkauf-bereich {
  display: inline-block;
  min-width: 45%;
  margin-right: auto;
  margin-left: auto;
  padding-right: 25px;
  padding-left: 25px;
  text-align: center;
}

#verkauf .verkauf-bereich h3 {
  margin-bottom: 15px;
}

/* --- Team --- */
#team h3 {
  text-align: left;
}

#team img {
  margin-right: 70px;
  margin-bottom: 35px;
  border-radius: 2px;
}

#team .profil {
  margin-bottom: 35px;
  border-bottom: 1px solid var(--linie);
}

#team .profil:last-child {
  margin-bottom: 0;
  border: 0;
}

#team .profil:last-child img {
  margin-bottom: 0;
}


/* 9. Formular
   ========================================================================== */

.kontaktformular label {
  display: block;
  margin: 0 0 5px;
}

.kontaktformular input:not([type="submit"]):not([type="checkbox"]),
.kontaktformular textarea,
.kontaktformular fieldset {
  display: block;
  width: 85%;
  max-width: 500px;
  margin: 0 0 25px 2px;
  padding: 10px 15px;
  border: 1px solid rgba(0, 0, 0, .25);
  border-radius: 5px;
}

.kontaktformular fieldset input {
  float: left;
  display: inline-block;
  margin-right: 10px;
}

.kontaktformular .pflicht {
  color: inherit;
}

/* Spamschutz-Feld: für Menschen unsichtbar */
.kontaktformular .hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.formular-fehler {
  max-width: 500px;
  margin: 0 0 25px 2px;
  padding: 10px 15px;
  border: 1px solid var(--akzent);
  border-radius: 5px;
  background: #fdf1ed;
  color: var(--akzent);
}

.formular-fehler a {
  color: var(--akzent);
  text-decoration: underline;
}

.kontaktformular button[type="submit"] {
  margin-top: 25px;
  padding: 7px 15px;
  background-color: rgba(0, 0, 0, .25);
  border: 1px solid rgba(0, 0, 0, .25);
  border-radius: 5px;
  font-size: 13.3px;
  cursor: pointer;
}


/* 10. Karte
   ========================================================================== */

#karte {
  height: 500px;
}

#karte .karte-logo {
  background: none;
  border: 0;
}


/* 11. Fußbereich
   ========================================================================== */

#footer {
  clear: both;
}

#footer1 {
  width: 100%;
  padding-top: 35px;
  background-color: #050505;
}

#footer1,
#footer1 a {
  color: #bbb;
}

#footer1 h2 {
  padding-bottom: 20px;
  text-align: left;
  color: #fff;
}

#footer1 p {
  margin: 0 0 23.8px;
}

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

#footer1 .footer-block {
  display: inline-block;
  width: 33%;
  min-width: 200px;
  padding-bottom: 35px;
  vertical-align: top;
}

#footer2 {
  text-align: center;
  background-color: #222;
}

#footer2 .tight {
  position: relative;
  padding-top: 25px;
  padding-bottom: 25px;
}

#footer2 a {
  display: inline-block;
  margin: 14px 0;
  padding: 0 17px;
  color: #bbb;
}

/* "Nach oben"-Pfeil: gedrehtes Quadrat */
#footer2 #top-link {
  position: absolute;
  top: 0;
  right: 35px;
  width: 50px;
  height: 50px;
  margin: -20px 0 0;
  padding: 0;
  background-color: #222;
  border: 1px solid #222;
  border-top-right-radius: 15px;
  transform: rotate(-45deg);
}

#footer2 #top-link span {
  display: block;
  width: 50px;
  height: 50px;
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  line-height: 35px;
  transform: rotate(45deg);
}


/* 12. Lightbox (Großansicht von Bildern, gesteuert durch js/main.js)
   ========================================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .9);
  cursor: pointer;
}

.lightbox figure {
  position: relative;
  max-width: 95%;
  max-height: 95%;
  margin-top: 20px;
}

.lightbox img {
  display: block;
  max-width: calc(95vw - 10px);
  max-height: calc(95vh - 30px);
  border: 5px solid #000;
  background: #fff;
}

.lightbox figcaption {
  position: absolute;
  top: -20px;
  left: 0;
  color: #ccc;
  line-height: 20px;
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 15px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 36px;
  line-height: 1;
  color: #ccc;
  cursor: pointer;
}


/* 13. Responsive Anpassungen
   ========================================================================== */

@media screen and (min-width: 1500px) {
  #start-slider .start-slider-element {
    background-size: 100% auto;
  }
}

/* Mobile Navigation */
@media screen and (max-width: 999px) {
  #menu-toggle {
    display: block;
  }

  #mainmenu {
    display: none;
    position: fixed;
    top: var(--header-hoehe);
    right: 0;
    bottom: 0;
    left: 0;
    float: none;
    height: auto;
    overflow-y: auto;
    background: #e0e0e0;
  }

  .menu-offen #mainmenu {
    display: block;
  }

  .menu-offen {
    overflow: hidden;
  }

  #mainmenu li {
    display: block;
    height: auto;
    padding: 0;
    line-height: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, .1);
    margin-left: 20px;
  }

  #mainmenu a {
    display: block;
    padding: 10px 10px 10px 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: rgba(0, 0, 0, .7);
    text-transform: none;
    letter-spacing: 0;
  }

  #mainmenu a.active {
    font-weight: 600;
  }

  #mainmenu li:hover,
  #mainmenu li:hover a {
    background: none;
  }
}

@media (max-width: 767px) {
  #main {
    float: none;
    width: auto;
  }
}

@media screen and (max-width: 500px) {
  #header .tight {
    padding-right: 15px;
    padding-left: 15px;
  }

  .tight {
    padding-right: 20px;
    padding-left: 20px;
  }

  #start-slider .start-slider-mainline {
    font-size: 40px;
    font-weight: bold;
  }

  #start-slider .start-slider-subline {
    font-size: 18px;
  }

  #start-partner .partner-logo {
    margin-bottom: 25px;
  }

  #start-partner .partner-logo img {
    min-width: 300px;
  }

  .seitentitel p {
    padding-top: 100px;
    padding-bottom: 100px;
    font-size: 25px;
    line-height: 35px;
  }

  #team h3 {
    font-size: 20px;
    line-height: 25px;
  }

  #team img {
    margin-right: 15px;
    margin-bottom: 10px;
  }

  #footer2 a {
    display: block;
    padding: 0;
    text-align: left;
  }
}
