 * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: Arial, sans-serif;
    }

    header {
      background: url('../images/panorama.jpg') center center/cover no-repeat;
      text-align: center;
      color: white;
      padding: 2rem 1rem;
    }

    header img {
      width: 100%;
      max-width: 200px;
      height: auto;
    }

    header h1 {
      margin-top: 1rem;
      font-size: 1.2rem;
    }

    nav {
      background-color: #436d2e;
      color: white;
    }

    .menu {
      display: flex;
      justify-content: center;
      align-items: center;
      flex-wrap: wrap;
    }

    .menu a {
      padding: 1rem;
      color: white;
      text-decoration: none;
    }

    .menu-toggle {
      display: none;
      background-color: #436d2e;
      padding: 1rem;
      cursor: pointer;
      text-align: center;
    }

    .menu-toggle svg {
      display: block;
      margin: auto;
      fill: white;
    }

    .ticker {
      background-color: #90a955;
      overflow: hidden;
      white-space: nowrap;
      line-height: 2;
    }

    .ticker-text {
      display: inline-block;
      padding-left: 100%;
      animation: ticker 15s linear infinite;
      font-weght: bold;
    }

    @keyframes ticker {
      0% { transform: translateX(0); }
      100% { transform: translateX(-100%); }
    }

    main {
  display: flex;
  flex-wrap: nowrap;
  padding: 1rem;
}



.left, .right {
  flex: 1; /* füllt gleichmäßig den verfügbaren Platz */
  display: flex;
  justify-content: center;
  align-items: top;
  position: sticky;
  top: 2em;
  min-height: 300px;
  position: sticky;

}

.middle {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;

}

/* Vollbreite Bereich */
.full {
  width: 100%;
  margin-bottom: 1.5rem;
  background-color: white;
  padding: 1rem;
  border-radius: 8px;
  border: 0.1em solid #edede9;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);

}

/* Standard Spalten-Layout: 1-spaltig für mobile */
.row {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.row.two-cols {
  grid-template-columns: 1fr; /* Mobile: 1 Spalte */
}

.row.three-cols {
  grid-template-columns: 1fr; /* Mobile: 1 Spalte */
}

/* Ab Tablet: 2 und 3 Spalten */
@media (min-width: 768px) {
  .row.two-cols {
    grid-template-columns: 1fr 1fr;
  }

  .row.three-cols {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* Optional: gestalte einzelne Boxen */
.colum {
  background-color: ##FFFFFF;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);

}


   .left img, .right img {
  width: fit-content;
  object-fit: contain;
  border: 1px solid #ccc;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
  position: sticky;
  top: 2em;
  height: fit-content;
}

    @media (max-width: 1200px) {
      main {
    flex-direction: column;
  }
  .left, .right {
    position: relative;
    top: unset;
    min-height: unset;
  }
    }

    footer {
      display: flex;
      flex-wrap: wrap;
      background-color: #436d2e;
      color: white;
      padding: 1rem;
      font-size: 0.85rem;
    }

    footer .col {
      flex: 1 1 25%;
      padding: 0.5rem;
    }

    footer img {
      max-width: 100%;
      max-height: 60px;
      height: auto;
    }

    @media (max-width: 768px) {
      .menu-toggle {
        display: block;
      }
      .menu {
        display: none;
        flex-direction: column;
        text-align: center;
        width: 100%;
      }
      .menu.show {
        display: flex;
      }
      footer .col {
        flex: 1 1 100%;
        text-align: center;
      }
      .full {
        margin-top: 1.5rem;
      }
      .kleiner_text {
    font-size: 1rem;
    text-align: justify;
}

    }



/* Formular */


  .formularcontainer {
      max-width: 500px;
      margin: 20px auto;
      background: white;
      border-radius: 12px;
      box-shadow: 0 4px 16px rgba(0,0,0,0.1);
      overflow: hidden;
    }

    .tab-header {
      display: flex;
    }

    .tab-header label {
      flex: 1;
      text-align: center;
      padding: 15px;
      background: #436d2e;
      cursor: pointer;
      font-weight: bold;
      transition: background 0.3s;
      color: white;
    }

    input[type="radio"] {
      display: none;
    }

    #login-tab:checked ~ .tab-header label[for="login-tab"],
    #register-tab:checked ~ .tab-header label[for="register-tab"] {
      background: #90a955;
      color: white;
    }

    .form-content {
      padding: 30px;
    }

    form.register-form {
      display: none;
    }

    form.login-form {
      display: none;
    }

    #login-tab:checked ~ .form-container form.login-form,
    #register-tab:checked ~ .form-container form.register-form {
      display: block;
    }

    label.field-label {
      display: block;
      margin-bottom: 6px;
      margin-top: 14px;
      font-weight: 600;
      color: #333;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"] {
      width: 100%;
      padding: 10px 12px;
      margin-top: 4px;
      border: 1px solid #ccc;
      border-radius: 8px;
      font-size: 15px;
    }

    button.formular_button {
      margin-top: 20px;
      width: 100%;
      padding: 12px;
      background-color: #436d2e;
      color: white;
      border: none;
      border-radius: 8px;
      font-size: 16px;
      font-weight: bold;
      cursor: pointer;
      transition: background 0.3s;
    }

    button.formular_button:hover {
      background-color: #90a955;
    }

    .required::after {
      content: " *";
      color: red;
    }

    textarea {
  width: 100%;
  padding: 10px 12px;
  margin-top: 4px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
  resize: vertical;
  min-height: 100px;
  font-family: 'Segoe UI', sans-serif;
}

textarea:focus {
  border-color: #007BFF;
  outline: none;
}

.error-message {
      color: red;
      font-size: 0.9em;
      display: none;
    }
    .invalid {
      border: 2px solid red;
    }

/* Tabelle */

  .tabelle-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 20px;
  }

  table.paket-tabelle {
    width: 60%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
  }

  .paket-tabelle th,
  .paket-tabelle td {
    padding: 10px 15px;
    border: 1px solid #ccc;
  }

  .paket-tabelle th {
    background-color: #436d2e;
    color: white;
    text-align: center;
  }

  .paket-tabelle td:first-child {
    text-align: left;
  }

  .paket-tabelle td:last-child {
    text-align: right;
  }

  .paket-tabelle td:nth-child(2),
  .paket-tabelle td:nth-child(3) {
    text-align: center;
  }

     /* SLIDER */

     :root{
    --gap: 10px;
    --border: 1px solid #ddd;
    --card-bg: #fff;
    --card-shadow: 0 1px 3px rgba(0,0,0,0.06);
    --arrow-size: 36px;
    --arrow-touch-gap: 8px;
  }
   .inserate-slider {
    position: relative;
    overflow: visible;
    padding: 12px 6px;
  }
  .inserate-slider__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 10px 6px;
  }

  .inserate-slider__viewport { overflow: hidden; width:100%; }
  .inserate-slider__track {
    display: flex;
    gap: var(--gap);
    transition: transform 350ms ease;
    will-change: transform;
    align-items: stretch;
    position: relative;
  }

  .inserat {
    flex: 0 0 auto;
    box-sizing: border-box;
    background: var(--card-bg);
    border: var(--border);
    border-radius: 6px;
    border-color: #436d2e;
    box-shadow: var(--card-shadow);
    padding: 10px;
    display: flex;
    flex-direction: column;
    min-height: 160px;
  }
  .inserat .img {
    height: 100px;
    width: 100%;
    background: linear-gradient(135deg,#e2e8f0,#cbd5e1);
    border-radius: 4px;
    margin-bottom: 8px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:0.9rem;
    overflow: hidden;
    color:#374151;
  }

.inserat .img img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* füllt den Container und schneidet überstehende Teile ab */
  display: block;
}

  .inserat h3 { font-size: 0.95rem; margin: 6px 0 4px; }
  .inserat p { font-size: 0.7rem; margin: 0 0 8px; color:#4b5563; flex:1 1 auto; }
  .inserat .price { font-weight:700; font-size:0.98rem; margin-top:auto; }

  .inserate-slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: var(--arrow-size);
    height: var(--arrow-size);
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 4px 10px rgba(2,6,23,0.06);
    cursor: pointer;
    z-index: 5;
  }
  .inserate-slider__arrow--prev { left: calc(-1 * (var(--arrow-size) + var(--arrow-touch-gap))); }
  .inserate-slider__arrow--next { right: calc(-1 * (var(--arrow-size) + var(--arrow-touch-gap))); }
  .inserate-slider__arrow svg { width: 18px; height: 18px; display:block; }

  .inserate-slider__arrow[disabled] {
    opacity: 0.45;
    pointer-events: none;
  }

  @media (max-width: 640px) {
    .inserate-slider__arrow { display: none; }
  }

  .inserat.placeholder {
    opacity: 0.65;
    background: linear-gradient(180deg,#fbfdff,#f3f7fb);
    border-style: dashed;
  }

  .inserate-slider__arrow:focus { outline: 3px solid rgba(59,130,246,0.3); }
