/* Allgemeines Styling */

html,
body {
    height: 100%;
    margin: 0;
}

body {
    font-family: "EB Garamond", serif;
    padding: 0;
    background-color: rgb(228, 36, 36);
    color: red;
    overflow-x: hidden;
}

.hidden {
    display: none !important;
}

main {
    flex-grow: 1;
}

.wrapper {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* Info-Banner */

#info-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8d7da;
    color: #721c24;
    padding: 12px 16px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 9999;
}

#info-banner-link {
    display: block;
    flex: 1;
    color: inherit;
    text-decoration: none;
    text-align: center;
    font-size: 20px;
}

#info-banner-link:hover {
    text-decoration: underline;
}

#info-banner-text {
    flex: 1;
    text-align: center;
    font-size: 20px;

}

/* Header / Navigation */

.header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgb(240, 81, 81);;
    color: rgb(240, 81, 81);
    min-height: 100px;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    overflow: visible;
}

.header-content {
    position: relative;
    width: 100%;
    max-width: 1400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo img,
.logo-rechts img {
    position: absolute;
    top: 5px;
    height: auto;
    width: 80px;
    max-height: 90px;
}

.logo img {
    left: 20px;
}

.logo-rechts img {
    right: 20px;
}

.header-text {
    text-align: center;
    color: yellow;
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 0 120px;
}

.header-text h1 {
    font-size: 1.8em;
    margin: 0;
}

.header-text p {
    font-size: 1.2em;
    margin: 5px 0 0 0;
}

/* Navigation Desktop */

.navigation {
    width: 100%;
}

.navigation > ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.navigation > ul > li {
    position: relative;
}

.navigation a {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: #000000;
    font-size: 1.1em;
    transition: color 0.3s ease, background 0.3s ease;
}

.navigation a:hover {
    color: #ffcc00;
}

/* Untermenü Desktop */

.navigation .submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 220px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 2000;
    border-radius: 0 0 6px 6px;
}

.navigation .submenu li {
    width: 100%;
}

.navigation .submenu a {
    padding: 12px 16px;
    white-space: nowrap;
    color: #000;
}

.navigation .submenu a:hover {
    background: #f0f0f0;
    color: #000;
}

.navigation li.has-submenu:hover > .submenu {
    display: block;
}

.has-submenu > a::after {
    content: " ▼";
    font-size: 0.7em;
}

/* Zweite Ebene nach rechts öffnen */
.navigation .submenu .submenu {
    top: 0;
    left: 100%;
    margin-left: 0;
    display: none;
    position: absolute;
}

/* Beim Hover anzeigen */
.navigation .submenu li.has-submenu:hover > .submenu {
    display: block;
}

/* Zweite Ebene nach rechts öffnen */
.navigation .submenu .submenu {
    top: 0;
    left: 100%;
    margin-left: 0;
    display: none;
    position: absolute;
}

/* Beim Hover anzeigen */
.navigation .submenu li.has-submenu:hover > .submenu {
    display: block;
}

/* Hamburger-Menü */

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    cursor: pointer;
    margin: 10px auto;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #000000;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Footer */

.footer {
    width: 100%;
    background-color: rgb(240, 81, 81);;
    color: #000000;
    text-align: center;
    font-size: 14px;
}

.footer-content p {
    margin: 10px 0;
    font-size: 1em;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.social-link {
    color: black;
    font-size: 1.8em;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #ffcc00;
}

.footer-links {
    margin: 15px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-link {
    color: black;
    text-decoration: none;
    font-size: 1em;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #ffcc00;
}

.copyright {
    font-size: 0.9em;
    margin-top: 15px;
    opacity: 0.8;
}

/* Home */

.carousel-container {
    width: 800px;
    height: 400px;
    margin: 20px auto;
    overflow: hidden;
    position: relative;
    background-color: transparent;
}

.carousel {
    display: flex;
    width: 100%;
    height: 100%;
}

.slide {
    flex: 0 0 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.welcome-text {
    text-align: center;
    margin-top: 20px;
    padding: 10px;
    font-family: Arial, Helvetica, sans-serif;
    color: #333;
}

.welcome-text h2 {
    font-size: 2em;
    margin-bottom: 10px;
    color: black;
}

.welcome-text p {
    font-size: 1.2em;
    color: #555;
}

.content-box {
    max-width: 700px;
    margin: 20px auto;
    text-align: center;
    background: white;
    padding: 30px 24px;
    border-radius: 12px;
    line-height: 1.7;
    color: #333;
}

/* Kontakt */

.contact-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.contact-form {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 550px;
}

.contact-form label {
    display: block;
    font-weight: bold;
    margin-top: 15px;
    margin-bottom: 5px;
}

.contact-form input,
.contact-form textarea {
    width: 500px;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.contact-form button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.contact-form button:hover {
    background-color: #2980b9;
}

.contact-form input[type="checkbox"] {
    margin-right: 10px;
}

label[for="privacy"] {
    display: block;
    text-align: center;
    margin-top: 10px;
    line-height: 1.5;
}

.privacy-container,
button[type="submit"] {
    display: block;
    margin: 0 auto;
    text-align: center;
}

button[type="submit"] {
    margin-top: 15px;
    padding: 10px 20px;
    font-size: 16px;
}

.privacy-container {
    margin-bottom: 15px;
}

.success-message {
    color: #28a745;
    background-color: #e9f7ef;
    border: 1px solid #c3e6cb;
    padding: 10px;
    margin-bottom: 15px;
    text-align: center;
    font-size: 16px;
}

/* About */

#about-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    flex-direction: column;
}

.about-text {
    text-align: center;
}

.about-text h2 {
    font-size: 2em;
    margin-bottom: 10px;
}

.about-text p {
    font-size: 1.3em;
    color: #000000;
    line-height: 1.6;
}

.about-image,
.zertifikat-image,
.horses-image {
    max-width: 500px;
    margin-top: 20px;
    margin-bottom: 20px;
    overflow: hidden;
}

.about-image {
    height: 281px;
    align-items: center;
}

.zertifikat-image {
    height: 281px;
    align-items: center;
}

.horses-image {
    height: 280px;
    align-self: center;
}

.about-image img,
.zertifikat-image img,
.horses-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.work-image {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 20px auto 30px auto;
    max-width: 100%;
    padding: 0 10px;
}

.work-image img {
    width: 100%;
    max-width: 90px;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
}

/* Horses */

.photo-gridCarlo {
    display: grid;
    grid-template-columns: repeat(5, minmax(50px, 0.1fr));
    gap: 10px;
    padding: 10px;
    justify-content: center;
}

.photo {
    width: 100%;
    height: auto;
    cursor: pointer;
    transition: transform 0.2s;
}

.photo:hover {
    transform: scale(1.05);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

#about-carlo,
#about-Pagnol {
    display: flex;
    flex-direction: column;
    padding: 20px;
}

#about-Pagnol {
    justify-content: center;
}

.about-textCarlo,
.about-textPagnol {
    text-align: center;
}

.about-textCarlo h2,
.about-textPagnol h2 {
    font-size: 2em;
    margin-bottom: 10px;
}

.about-textCarlo p,
.about-textPagnol p {
    font-size: 1.3em;
    color: #000000;
    line-height: 1.6;
}

/* Services */

#services-container {
    background-color: #fff;
    padding: 40px 20px;
    margin: 20px auto;
    max-width: 800px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.service-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

.service-text p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Partner */

.partner-section {
    padding: 20px;
    text-align: center;
    background-color: #f4f4f4;
}

.partner-section h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #333;
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    justify-items: center;
    padding: 20px;
}

.partner-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-card img {
    max-width: 100px;
    height: auto;
    margin-bottom: 10px;
}

.partner-card h3 {
    font-size: 1.5em;
    margin: 10px 0;
    color: #0e4438;
}

.partner-card p {
    font-size: 1em;
    color: #666;
    margin: 5px 0;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

#card a { text-decoration: none; }
#card a:visited { color: rgba(64, 64, 64, 1); }

/* Karten-Grid für 3 Karten pro Reihe */
.karten-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 35px;
    margin-left: 70px;
}

.kalender-wrapper {
  max-width: 1200px;
  margin: 5rem auto 8rem auto;
  background: white;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

#kalender {
  margin-bottom: 2rem;
  width: 1200px;
  height: 55vh;
}

.sync-button {
  display: block;
  margin: 0 auto;
  background: #007bff;
  color: white;
  padding: 0.8rem 1.6rem;
  border: none;
  font-size: 1.1rem;
  border-radius: 6px;
  cursor: pointer;
}

#imContent h1 {
  text-align: center;
}

.fc-daygrid-dot-event .fc-event-title {
	overflow: scroll;
}

/* ---------- Responsive Anpassungen ---------- */

/* Für Tablets und kleinere Desktops */
@media (max-width: 992px) {

  .kalender-wrapper {
    margin: 3rem 1rem 6rem 1rem;
    max-width: 350px
  }

  #kalender {
    height: 50vh;
    width: 350px;
  }
}

/* Für Smartphones */
@media (max-width: 576px) {
  .sync-button {
    font-size: 1rem;
    padding: 0.7rem;
	margin-left: 120px;
  }

  #kalender {
    height: 50vh;
    width: 350px;
  }

  .kalender-wrapper {
    margin: 3rem 1rem 6rem 1rem;
    max-width: 350px
  }

  #imContent h1 {
    font-size: 1.5rem;
    margin: 10px 600px;
  }
}

.button-nav {
          display: flex;
          flex-wrap: wrap;
          gap: 16px;
          margin: 2em 0 3em;
          justify-content: center;
        }
        
        .button-nav a {
          display: inline-block;
          padding: 14px 28px;
          background: #0d6efd; /* Bootstrap Blau als modernes Beispiel */
          color: white;
          font-weight: 600;
          font-size: 1.15rem;
          border-radius: 12px;
          box-shadow: 0 6px 15px rgba(13, 110, 253, 0.3);
          text-decoration: none;
          transition: background-color 0.3s ease, box-shadow 0.3s ease,
                      transform 0.2s ease;
          user-select: none;
        }
        
        .button-nav a:hover,
        .button-nav a:focus {
          background: #084cd9;
          box-shadow: 0 8px 20px rgba(8, 76, 217, 0.5);
          outline: none;
          transform: translateY(-3px);
        }
        
        .button-list {
          display: flex;
          flex-direction: column;
          gap: 14px;
          margin-bottom: 3em;
          padding-left: 0;
          list-style: none;
          max-width: 520px;
          align-items: center;
          margin-left: auto;
          margin-right: auto;
        }
        
        .button-list a {
          display: inline-block;
          padding: 12px 24px;
          background: #198754; /* modernes Grün */
          color: white;
          font-weight: 500;
          font-size: 1.05rem;
          border-radius: 10px;
          box-shadow: 0 5px 12px rgba(25, 135, 84, 0.3);
          text-decoration: none;
          transition: background-color 0.3s ease, box-shadow 0.3s ease,
                      transform 0.2s ease;
          user-select: none;
          width: 100%;
          max-width: 400px;
          text-align: center;
        }
        
        .button-list a:hover,
        .button-list a:focus {
          background: #146c43;
          box-shadow: 0 7px 18px rgba(20, 108, 67, 0.5);
          outline: none;
          transform: translateY(-2px);
        }

        /* =========================
   ARCHIV SEITE
   ========================= */

.archive {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    text-align: center;
}

/* Überschrift */
.archive h2 {
    margin-top: 40px;
    margin-bottom: 15px;
    font-size: 1.8em;
    color: #333;
}

/* =========================
   NAV BUTTONS (JAHRE)
   ========================= */

.button-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0 40px 0;
}

.button-nav a {
    display: inline-block;
    padding: 10px 16px;
    background: #2575fc;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.95em;
    transition: all 0.3s ease;
}

.button-nav a:hover {
    background: #1e63d6;
    transform: translateY(-2px);
}

/* =========================
   LISTEN (EINTRÄGE)
   ========================= */

.archive-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Liste zentrieren */
.button-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 30px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* Einträge als Buttons */
.button-list a {
    display: inline-block;
    min-width: 280px;
    max-width: 100%;
    padding: 10px 15px;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-size: 0.95em;
    transition: all 0.3s ease;
}

/* Hover Effekt */
.button-list a:hover {
    background: #f0f0f0;
    transform: scale(1.03);
    border-color: #ccc;
}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 768px) {

    .archive {
        padding: 10px;
    }

    .button-nav {
        gap: 6px;
    }

    .button-nav a {
        padding: 8px 12px;
        font-size: 0.85em;
    }

    .button-list a {
        min-width: 90%;
        font-size: 0.9em;
    }
}

.gallery-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px 50px;
}

.gallery-intro {
    text-align: center;
    margin-bottom: 30px;
}

.gallery-intro h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #222;
}

.gallery-intro p {
    font-size: 1.1rem;
    color: #555;
    margin: 0;
}

.gallery-grid-section {
    display: flex;
    justify-content: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* IMMER 3 nebeneinander */
    gap: 20px;
}

/* Tablet */
@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Handy */
@media (max-width: 500px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

.gallery-item {
    border: 0;
    background: #fff;
    padding: 0;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.gallery-item img {
    display: block;
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    z-index: 9999;
}

.lightbox[hidden] {
    display: none !important;
}

.lightbox img {
    max-width: 95vw;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 24px;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
}

@media (max-width: 768px) {
    .gallery-page {
        padding: 20px 12px 35px;
    }

    .gallery-intro h2 {
        font-size: 1.6rem;
    }

    .gallery-intro p {
        font-size: 1rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 12px;
    }

    .gallery-item img {
        height: 170px;
    }

    .lightbox {
        padding: 12px;
    }
}

/* Responsive: Bei kleinerem Bildschirm nur 2 oder 1 Karte nebeneinander */
@media (max-width: 1100px) {
    .karten-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 700px) {
    .karten-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Unsichtbarer Link, ganze Karte klickbar */
.card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.card-link:visited {
    color: inherit;
}
.card-link .card {
    cursor: pointer;
    transition: box-shadow 0.2s, border 0.2s;
}
.card-link:hover .card {
    box-shadow: 0 8px 24px rgba(37,99,235,0.15);
    border: 2px solid #2563eb;
}

/* Einzelne Karte */
.card {
    font-family: Tahoma, Arial, sans-serif;
    font-size: 11pt;
    background-color: #e0e0e0;
    color: #404040;
    border-radius: 15px;
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
    width: 300px;
    min-width: 260px;
    max-width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}

/* Bildbereich */
.card .img {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 18px;
}
.card .img_mask {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    background: #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
}
.card .img_mask img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Datenbereich */
.card .data {
    padding: 18px 24px 24px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.card .title {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 8px;
    text-align: center;
}
.card .citation {
    font-size: 11pt;
    line-height: 1.6em;
    margin-bottom: 12px;
    text-align: center;
}
.card .separator {
    width: 18%;
    height: 2px;
    border-top: 3px solid #fff;
    margin: 10px auto;
}
.card .signatures {
    width: 100%;
    text-align: center;
    margin-bottom: 8px;
}
.card .signature1 {
    font-weight: 800;
    font-size: 0.95em;
    display: block;
}
.card .signature2 {
    font-size: 0.85em;
    color: #404040;
    font-weight: normal;
    margin-top: 4px;
    display: block;
}
.card .date {
    font-size: 0.85em;
    color: #888;
    margin-bottom: 8px;
    text-align: center;
}

/* Bewertung */
.card .rating {
    margin-top: 8px;
    text-align: center;
}
.card .star {
    color: #eee;
    font-size: 1.2em;
}
.card .star.filled {
    color: #fbbf24;
}

/* Mobile + Tablet */

@media (max-width: 1024px) {
    body {
        font-size: 14px;
    }

    .header {
        min-height: 100px;
        padding: 10px 0;
    }

    .logo img,
    .logo-rechts img {
        width: 60px;
        max-height: 70px;
        top: 15px;
    }

    .header-text {
        padding: 0 80px;
        margin-top: 5px;
        margin-bottom: 10px;
    }

    .header-text h1 {
        font-size: 1.4em;
    }

    .header-text p {
        font-size: 1em;
    }

    .menu-toggle {
        display: flex;
        margin-bottom: 10px;
    }

    .navigation {
        display: none;
        width: 100%;
        background-color: rgba(211, 218, 220, 1);
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1000;
    }

    .navigation.active {
        display: block;
    }

    .navigation > ul {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .navigation > ul > li {
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }

    .navigation > ul > li > a {
        padding: 14px 20px;
        font-size: 1em;
    }

    .navigation .submenu {
        display: block;
        position: static;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.45);
        min-width: 100%;
        border-radius: 0;
    }

    .navigation .submenu li {
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    .navigation .submenu a {
        padding: 12px 35px;
        font-size: 0.95em;
        white-space: normal;
    }

    .has-submenu > a::after {
        content: "";
    }

    .carousel-container {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .work-image {
        gap: 10px;
        width: 100%;
        max-width: 100%;
    }

    .footer {
        font-size: 12px;
        padding: 10px;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }

    .contact-form {
        width: 100%;
        max-width: 100%;
    }

    .contact-form input,
    .contact-form textarea {
        width: 100%;
        box-sizing: border-box;
    }

    #about-container {
        padding: 10px;
    }

    .about-text h2 {
        font-size: 1.5em;
    }

    .about-text p {
        font-size: 1em;
    }

    .photo-gridCarlo {
        grid-template-columns: repeat(2, 1fr);
    }

    .modal-content {
        width: 90%;
    }

    .partner-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 10px;
    }

    .partner-card {
        padding: 10px;
    }

    .partner-card img {
        max-width: 80px;
        margin-bottom: 8px;
    }

    .partner-card h3 {
        font-size: 1.2em;
        margin: 8px 0;
    }

    .partner-card p {
        font-size: 0.9em;
        margin: 4px 0;
    }
}

/* Nur kleine Smartphones */

@media (max-width: 768px) {
    .header-text {
        padding: 0 70px;
    }

    .header-text h1 {
        font-size: 1.2em;
    }
}