/* Layout ohne Bootstrap */

/* Container */
.container {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 30px;
  box-sizing: border-box;
}

@media (max-width: 767px) {
  .container {
    padding: 0 20px;
  }
}

/* Grid System mit CSS Grid */
.row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 30px;
  margin: 0;
}

/* Spalten für Desktop */
.col-md-4 {
  grid-column: span 4;
}

.col-md-12 {
  grid-column: span 12;
}

/* Responsive für Tablets */
@media (max-width: 991px) {
  .row {
    gap: 20px;
  }
  
  .col-md-4 {
    grid-column: span 6;
  }
}

/* Responsive für Mobile */
@media (max-width: 767px) {
  .row {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .col-md-4 {
    grid-column: span 1;
  }
}

/* Jumbotron Ersatz */
.jumbotron {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 44.85%; /* Exaktes Verhältnis: 897/2000 = 0.4485 */
  margin: 0;
  margin-bottom: 2px;
  background: url("../../images/Bioladen-Gruenschnabel.jpg") no-repeat top center;
  background-size: 100% auto;
  overflow: hidden;
}

/* Mobile: Bild zoomen für besseren Bildausschnitt */
@media (max-width: 767px) {
  .jumbotron {
    background-size: auto 100% !important; /* Volle Höhe, Breite passt sich an */
    background-position: center center !important;
    padding-bottom: 60% !important; /* Höheres Verhältnis für Mobile */
  }
}

/* Kleinste Geräte (Smartphones im Portrait-Modus) */
@media (max-width: 480px) {
  .jumbotron {
    background-size: auto 100% !important; /* Volle Höhe OHNE Abschneiden */
    background-position: center center !important;
    padding-bottom: 82% !important; /* Viel höherer Container für Portrait */
    -webkit-background-size: auto 100% !important; /* Safari iOS Fix */
  }
}

/* iOS Safari spezifische Fixes */
@supports (-webkit-touch-callout: none) {
  .jumbotron {
    background-attachment: scroll !important;
  }
  
  @media (max-width: 767px) {
    .jumbotron {
      -webkit-background-size: auto 100% !important;
      background-size: auto 100% !important;
      background-position: center center !important;
    }
  }
  
  @media (max-width: 480px) {
    .jumbotron {
      -webkit-background-size: auto 100% !important;
      background-size: auto 100% !important;
      background-position: center center !important;
      padding-bottom: 82% !important; /* Mehr Höhe für iPhone Portrait */
    }
  }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 991px) {
  .jumbotron {
    background-size: auto 100% !important; /* Volle Höhe, leichter seitlicher Overflow */
    background-position: center center !important;
    padding-bottom: 50% !important; /* Angepasstes Verhältnis für Tablets */
  }
}

.jumbotron h1,
.jumbotron p {
  margin: 0;
}

/* Utilities */
hr {
  margin-top: 40px;
  margin-bottom: 40px;
  border: 0;
  border-top: 1px solid #eee;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 6px 12px;
  margin-bottom: 0;
  font-size: 14px;
  font-weight: normal;
  line-height: 1.42857143;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  background-image: none;
  border: 1px solid transparent;
  border-radius: 4px;
  text-decoration: none;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 12px;
  line-height: 1.5;
  border-radius: 3px;
}

.btn-success {
  color: #fff;
  background-color: #5cb85c;
  border-color: #4cae4c;
}

.btn-success:hover {
  color: #fff;
  background-color: #449d44;
  border-color: #398439;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}