/*
* Allgemeine Styles 29.05.2025 - 07:02 - 29.05.2025
* Copyright (c) 2025 (www.tuningfotojournal.de/css/drivar_testfahrt.css)
* erstellt durch manfred schaefer tuningen
*/

    /* Farben als CSS-Variablen */
    :root {
      --main-bg-color: #d4d4d7;
      --main-color: #2f2f2f; /* Dunkelgrau statt braun */
      --accent-color: #0047ab; /* blau statt braun */
      --text-color: #000;
      --text-light: #333;
      --text-leiste-author: #999;
      --text-leiste-manfred: #999;
      --text-leiste-footer: #333;
      --black: #000;
      --white: #fff;
      --trans: transparent;
      --font-base: 'Roboto', Arial, Helvetica, sans-serif;
      --font-alt: 'Roboto', Arial, Helvetica, sans-serif;
    }

    /* Reset und Grundlayout */
    html,
    body {
      margin: 0;
      padding-left: 1.25rem;
      background: var(--main-bg-color);
      font-family: var(--font-base);
      font-size: 0.85rem;
      line-height: 1.5;
      color: var(--text-color);
      height: 100%;
    }

    p {
      font-family: var(--font-base);
      font-size: 1rem;
      line-height: 1.6;
      margin-bottom: 0.75rem;
      color: var(--text-color);
    }

    /* Container mit max-width und responsive Breite */
    #top_spacer,
    #bottom_spacer {
      max-width: 43.5rem;
      height: 2.5rem;
      margin: 0 auto;
      background: transparent;
    }

    /* Schwarze Balken */
    #top_black_bar,
    header {
      max-width: 43.5rem;
      margin: 0 auto;
      background-color: var(--black);
      color: var(--white);
    }

    #top_black_bar {
      height: 2.5rem;
    }

    #bottom_black_bar {
      max-width: 43.5rem;
      height: 2.5rem;
      background-color: var(--main-bg-color);
      position: relative;
      top: -1.75rem;
      margin: 0 auto;
    }

    /* Header Container */
    header {
      /* entspricht div#header */
    }

    /* Innenbox mit schwarzem Hintergrund */
    #innenbox {
      margin: 1.75rem auto;
      padding: 0;
      background: var(--black);
      max-width: 40rem;
      border: 1px solid var(--black);
      text-align: justify;
      box-sizing: border-box;
      color: var(--white);
    }

    /* Bildcontainer mit relativer Position */
    #head_img {
      position: relative;
    }

    #head_img img {
      max-width: 100%;
      height: auto;
      display: block;
      border: none;
    }

    /* Leiste unten im Bild */
    #header_leiste {
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      font-weight: bold;
      padding: 0.375rem 0;
      font-size: 0.875rem;
      background-repeat: repeat;
      background-position: 0 0;
      text-align: center;
      box-sizing: border-box;
      z-index: 10;
      color: var(--black);
      visibility: visible;
      background-color: var(--white);
    }

    #header_leiste table {
      background: transparent !important;
      width: 100%;
      margin: 0;
      border-collapse: collapse;
      border-spacing: 0.125rem;
      border: none;
    }

    #header_leiste td {
      padding: 0 0.625rem;
      vertical-align: middle;
      border: none;
    }

    a.zurueck img {
      display: inline-block;
      vertical-align: middle;
      margin-right: 0.25em;
      /* Abstand zwischen Bild und Text */
    }

    a.zurueck {
      white-space: nowrap;
      /* verhindert Umbruch */
      display: inline-flex;
      align-items: center;
      gap: 0.25em;
      /* Abstand zwischen Bild und Text */
    }

    #header_leiste a.zurueck {
      color: #556b42;
      text-decoration: none;
    }

    #header_leiste a.zurueck:hover,
    #header_leiste a.zurueck:focus {
      text-decoration: underline;
      outline: none;
    }

    /* Obere Infozeile */
    #div_top_abt {
      max-width: 40rem;
      margin: 0 auto 1.25rem;
      font-size: 0.6875rem;
      color: var(--text-light);
      font-family: var(--font-base);
      text-align: left;
    }

    /* Haupttextbereich */
    main#main-content {
      max-width: 40rem;
      margin: 0 auto 1.375rem;
      font-size: 0.875rem;
      line-height: 1.4;
      font-family: var(--font-base);
      text-align: left;
      background: var(--white);
      color: var(--text-color);
      padding: 0.625rem 0.9375rem;
      box-sizing: border-box;
      border: 1px solid var(--black);
      clear: both;
      float: none;
    }

    /* Footerbereich */
    #div_bottom {
      max-width: 39.875rem;
      margin: 1.25rem auto 1.75rem;
      padding: 0.625rem 0;
      background: #c0c0c0;
      color: var(--text-color);
      text-align: center;
      font-size: 0.6875rem;
      font-family: var(--font-base);
      position: relative;
      height: auto;
      visibility: visible;
      border-color: solid 1px var(--black);
    }

    #div_bottom a.bodytext_klein,
    #div_bottom a.bodytext_klein:visited {
      color: #556b42;
      text-decoration: none;
    }

    #div_bottom a.bodytext_klein:hover,
    #div_bottom a.bodytext_klein:focus {
      text-decoration: underline;
      outline: none;
    }

    /* Überschriften mit Roboto */
    h1,
    h2.gross,
    h3,
    h4 {
      font-family: var(--font-alt);
      margin: 0 0 1rem 0;
      line-height: 1.2;
    }

    h1 {
      font-weight: 700;
      font-size: 1.875rem;
      color: var(--main-color);
      text-align: center;
      letter-spacing: 0.05em;
      margin-bottom: 1.2rem;
    }

    h2.gross {
      font-weight: 700;
      font-size: 1.75rem;
      color: var(--main-color);
      text-transform: uppercase;
      letter-spacing: 0.1em;
      padding-bottom: 0.5rem;
      border-bottom: 0.25rem solid var(--accent-color);
      text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.15);
      margin-bottom: 1rem;
    }

    h3 {
      font-weight: 600;
      font-size: 1.5rem;
      color: var(--main-color);
      text-align: center;
      margin-bottom: 1rem;
      cursor: default;
    }

    h3:hover {
      color: var(--accent-color);
    }

    /* Auffälliges h4 */
    h4 {
      font-weight: 700;
      font-size: 1.25rem;
      color: var(--white);
      background: linear-gradient(90deg, var(--main-color) 0%, var(--accent-color) 100%);
      
      padding: 1rem 2rem;
      border-radius: 0.5rem;
      text-align: center;
      margin: 1.5rem 0 1rem 0;
      cursor: default;
      user-select: none;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      transition: background 0.3s ease;
    }

    h4:hover {
      background-color: #003366; /* Dunkelblau */
  background-image: none;    /* Verlauf entfernen */
      color: var(--white);
    }

    h5 {
      font-weight: 700;
      font-size: 1.0rem;
    }

    /* Tabellen */
    table {
      border-collapse: collapse;
      width: 100%;
      max-width: 43.75rem;
      font-family: var(--font-base);
      font-size: 0.875rem;
      margin-bottom: 1.25rem;
      text-align: center;
      background: var(--white);
      color: var(--text-color);
    }

    table th,
    table td {
      border: 1px solid var(--black);
      padding: 0.375rem;
      text-align: center;
      color: var(--text-color);
    }

    table thead {
      background-color: #f2f2f2;
    }

    table tbody tr:nth-child(odd) {
      background-color: var(--main-bg-color);
    }

    table tbody tr:nth-child(even) {
      background-color: var(--white);
    }

    /* Kleine Schriftarten */
    .musfont11,
    .author,
    .bodytext_klein {
      font-family: var(--font-base);
      font-size: 0.8125rem;
      /* 13px */
      color: var(--text-leiste-footer);
      line-height: 1.4;
    }

    .author-manfred {
      font-family: var(--font-base);
      font-size: 0.8125rem;
      /* 13px */
      color: var(--text-leiste-manfred);
      line-height: 1.4;
    }

    .bodytext_10px {
      font-family: var(--font-base);
      font-size: 0.625rem;
      line-height: 1.4;
      color: var(--text-color);
      margin-bottom: 0.625rem;
    }

    .bodytext {
      font-family: var(--font-base);
      font-size: 0.75rem;
      line-height: 1.4;
      color: var(--text-color);
      margin-bottom: 0.625rem;
    }

    /* Links mit Unterstreichung bei Hover und Fokus */
    a.intern,
    a.extern,
    a.pdf {
      color: var(--text-color);
      text-decoration: none;
      border-bottom: 1px dotted var(--text-color);
    }

    a.intern:hover,
    a.extern:hover,
    a.pdf:hover,
    a.intern:focus,
    a.extern:focus,
    a.pdf:focus {
      color: var(--main-color);
      border-bottom: 1px solid var(--main-color);
      outline: none;
    }

    /* Fokus-Stil für alle Links und Buttons */
    a:focus,
    button:focus {
      outline: 3px solid var(--main-color);
      outline-offset: 2px;
      background-color: rgba(142, 34, 1, 0.1);
    }

    /* Drivar-Bereich Styles */
    #drivar-container {
      max-width: 40rem;
      margin: 1.25rem auto;
      background: var(--white);
      padding: 0.9375rem;
      border: 1px solid var(--main-color);
      border-radius: 0.5rem;
      color: var(--text-color);
      font-family: var(--font-base);
    }

    #drivar-container h3 {
      color: var(--main-color);
      text-align: center;
      margin-top: 0;
      margin-bottom: 1.25rem;
    }

    /* Flexbox Bildergalerie */
    #drivar-gallery {
      display: flex;
      flex-wrap: wrap;
      gap: 0.75rem;
      justify-content: center;
    }

    #drivar-gallery figure {
      flex: 1 1 28%;
      max-width: 11.25rem;
      margin: 0;
      font-size: 0.6875rem;
      text-align: center;
      color: var(--main-color);
      cursor: pointer;
    }

    #drivar-gallery figure img {
      width: 100%;
      height: auto;
      border-radius: 0.375rem;
      border: 1px solid var(--main-color);
      transition: transform 0.3s ease, border-color 0.3s ease;
      display: block;
      margin-bottom: 0.375rem;
    }

    #drivar-gallery figure:hover img,
    #drivar-gallery figure:focus-within img {
      transform: scale(1.05);
      border-color: var(--accent-color);
      outline: none;
    }

    #drivar-gallery figure figcaption {
      font-size: 0.6875rem;
      color: var(--main-color);
      user-select: none;
    }

    .drivar-text {
      font-size: 1rem;
      line-height: 1.6;
      color: var(--text-color);
      font-family: var(--font-base);
      margin-bottom: 0.75rem;
    }

    .drivar-text strong {
      color: var(--main-color);
      font-weight: 900;
      font-size: 1.1rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      background: linear-gradient(90deg, var(--accent-color), var(--main-color));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      display: inline-block;
      padding-top: 0.3125rem;
    }

    .drivar-text strong:hover {
      color: var(--accent-color);
      cursor: default;
    }

 

    .zaehler70proz {
      opacity: 0.7;
      /* FF 0 - 1.0  */
    }

    /* QR-Code Bereich */
    #drivar-qr-section {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: center;
      margin: 1.25rem 0 1.875rem 0;
      gap: 0.9375rem;
      background-color: #fefefe;
      border: 1px solid var(--main-color);
      border-radius: 0.5rem;
      padding: 0.9375rem;
      box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.12);
      max-width: 40rem;
      margin-left: auto;
      margin-right: auto;
    }

    #drivar-qr-text {
      flex: 1 1 18.75rem;
      font-family: var(--font-base);
      font-size: 0.875rem;
      color: var(--main-color);
      font-weight: bold;
      user-select: none;
    }

    #drivar-qr-image {
      flex: 0 0 8.75rem;
    }

    #drivar-qr-image img {
      display: block;
      width: 8.75rem;
      height: 8.75rem;
      border: 2px solid var(--main-color);
      border-radius: 0.5rem;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      cursor: pointer;
    }

    #drivar-qr-image img:hover,
    #drivar-qr-image img:focus {
      transform: scale(1.1);
      box-shadow: 0 0.25rem 0.9375rem rgba(142, 34, 1, 0.6);
      outline: none;
    }

    /* Text-mit-Bild Layout */
    .text-mit-bild {
      display: flex;
      align-items: flex-start;
      gap: 0.9375rem;
      max-width: 40rem;
      margin: 1.25rem auto;
    }

    .text-mit-bild figure {
      margin: 0;
      max-width: 11.25rem;
      text-align: center;
      font-family: var(--font-base);
      color: var(--main-color);
      user-select: none;
    }

    .text-mit-bild figure img {
      width: 100%;
      height: auto;
      border-radius: 0.375rem;
      border: 1px solid var(--main-color);
      display: block;
      margin-bottom: 0.25rem;
    }

    .text-mit-bild figure figcaption {
      font-size: 0.6875rem;
      line-height: 1.2;
      margin: 0;
    }

    .text-mit-bild p {
      flex: 1;
      font-family: var(--font-base);
      font-size: 1rem;
      line-height: 1.6;
      color: var(--text-color);
      margin: 0;
    }

    /* Sprachumschaltung */
    nav[aria-label="Sprachumschaltung"] a {
      color: #556b42;
      text-decoration: none;
      font-weight: bold;
      font-size: 0.75rem;
    }

    nav[aria-label="Sprachumschaltung"] a:hover,
    nav[aria-label="Sprachumschaltung"] a:focus {
      text-decoration: underline;
      outline: none;
    }

    /* Footer */
    footer {
      max-width: 40rem;
      margin: 1.25rem auto 2.5rem;
      font-family: var(--font-base);
      font-size: 0.625rem;
      color: var(--text-color);
    }

    /* Zentrierte Klasse */
    .text-center {
      text-align: center;
      margin-top: 1.25rem;
    }

    .button-primary {
      display: inline-block;
      background-color: var(--main-color);
      color: var(--white);
      padding: 0.625rem 1.25rem;
      border-radius: 0.25rem;
      text-decoration: none;
      font-weight: bold;
      cursor: pointer;
      transition: background-color 0.3s ease;
    }

    .button-primary:hover,
    .button-primary:focus {
      background-color: var(--accent-color);
      outline: none;
    }
    
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--main-color);
  color: var(--white);
  padding: 8px 16px;
  z-index: 100;
  transition: top 0.3s ease;
  font-weight: bold;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}    

    /* Responsive Anpassungen */
    @media print {
      html,
      body {
        background: var(--white) !important;
      }

      img {
        break-inside: avoid;
        max-width: 100% !important;
        height: auto !important;
      }

      #toggleDescription,
      #miniDescription,
      #resetTable,
      #bottom_black_bar {
        display: none !important;
      }

      .text-mit-bild {
        flex-direction: column;
        align-items: center;
        text-align: center;
      }

      .text-mit-bild img {
        max-width: 100%;
        width: 18.75rem;
      }

      nav[aria-label="Sprachumschaltung"] a {
        color: #556b42;
        text-decoration: none;
        font-weight: bold;
      }

      nav[aria-label="Sprachumschaltung"] a:hover {
        text-decoration: underline;
      }

      footer {
        display: none !important;
      }
    .drivar-text strong {
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: initial !important;
    color: var(--main-color) !important; /* oder ein kontraststarker Farbwert */
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    display: inline !important;
    padding-top: 0 !important;
  }  
      
    }

    @media (max-width: 30rem) {
      #drivar-qr-section {
        flex-direction: column;
        gap: 0.625rem;
      }

      #drivar-qr-text,
      #drivar-qr-image {
        flex: none;
        width: 100%;
        text-align: center;
      }

      #drivar-qr-image img {
        margin: 0 auto;
      }

      #drivar-gallery figure {
        flex: 1 1 45%;
        max-width: 45%;
      }
    }

    
  /* EXTRA Block am Seitenende 29052025 */
  /* Farben als CSS-Variablen */  
  .extra-block {
  max-width: 40rem;
  margin: 3rem auto 2rem;
  padding: 1.25rem;
  background-color: var(--main-bg-color);
  border: 1px solid var(--main-color);
  border-radius: 0.5rem;
  font-family: var(--font-base);
  color: var(--text-color);
}

.extra-block__title {
  background: linear-gradient(90deg, #0047ab 0%, #1e90ff 100%); /* Dunkelblau zu DodgerBlue */
  color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  text-align: center;
  margin-bottom: 1rem;
  user-select: none;
  letter-spacing: 0.1em;
}

.extra-block__text {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  text-align: left;
}

.extra-block__text--last {
  margin-bottom: 1.5rem;
}

.extra-block__button-wrapper {
  text-align: center;
  margin-bottom: 1rem;
}

.extra-block__button {
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.3rem;
  display: inline-block;
}

.linie {
  border-top: 1px solid var(--main-color);
  margin: 1.5rem 0;
}

.extra-block__subtitle {
  color: var(--main-color);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  text-align: left;
}

.extra-block__small-text {
  font-size: 0.85rem;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  text-align: left;
  color: #000000;
  user-select: none;
}

.extra-block__small-text--info {
  margin-bottom: 1.25rem;
}

.extra-block__address {
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 1rem;
  text-align: left;
  color: var(--text-color);
}

.extra-block__link {
  color: var(--main-color);
  text-decoration: underline;
  font-weight: bold;
  margin-left: 0.3rem;
}

.extra-block__winner-link {
  margin-bottom: 0.3rem;
  line-height: 1.4;
}
/* EXTRA Block am Seitenende 29052025 */