/* Datei: css/style.css */

body {
    margin: 0;
    font-family: sans-serif;
    background: #f4f4f4;
    color: #222;
}
header {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #2c3e50;
    color: white;
    padding: 1rem;
    text-align: center
}

.logo-link {
    display: flex;            /* Logo + Text nebeneinander */
    align-items: center;
    text-decoration: none;    /* keine Unterstreichung */
    color: inherit;           /* gleiche Farbe wie normaler Text */
}

.logo-link:hover {
    opacity: 0.8;             /* kleiner Hover-Effekt */
}

.logo {
    height: 50px;             /* Logo-Größe anpassen */
    margin-right: 10px;       /* Abstand zwischen Logo und Text */
}

.logo-title {
    display: flex;
    align-items: center;
    gap: 1em;
}

.logo-title.logo {
    height: 40px;
    width: auto;
}

nav {
    margin-top: 0.5em;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 0.5em;
}

nav a:hover {
    text-decoration: underline;
}


nav a {
    color: white;
    margin: 0 1rem;
    text-decoration: none;
    font-weight: bold;
}

.carousel {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    margin: 2rem auto;
}

.carousel-container {
    position: relative;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-track img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    flex-shrink: 0;
}

#prev, #next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 1rem;
    cursor: pointer;
    font-size: 2rem;
}

#prev {
    left: 10px;
}

#next {
    right: 10px;
}

.angebote {
    padding: 2rem;
    background: white;
}

.leistungen h1 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #222;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

.gallery a {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery a:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.gallery figure {
    text-align: center;
    margin: 0;
}

.gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

.gallery figcaption {
    margin-top: 0.5rem;
    font-size: 1rem;
    color: #333;
}
.content h1 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #2C4E80;
    display: inline-block;
    border-bottom: 2px solid #2C4E80;
    padding-bottom: 5px;
}

.content h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #2C4E80;
    display: inline-block;
    border-bottom: 2px solid #2C4E80;
    padding-bottom: 5px;
}

.content h3 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #2C4E80;
    display: inline-block;
    border-bottom: 2px solid #2C4E80;
    padding-bottom: 5px;
}
.content p1{
    color: #2C4E80;
}
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.container {
    display: flex;
    min-height: 100vh;
}

.impressum {
    width: 280px;
    background-color: #f5f5f5;
    padding: 20px;
    border-right: 1px solid #ddd;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}
.impressum a1{
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.impressum a2{
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.impressum a3{
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.impressum h1 {
    margin-top: 0;
    color: #2C4E80;
    font-size: 1.2em;
    display: inline-block;
    border-bottom: 2px solid #2C4E80;
    padding-bottom: 5px;
}

.impressum h2 {
    margin-top: 0;
    color: #2C4E80;
    font-size: 1.2em;
    display: inline-block;
    border-bottom: 2px solid #2C4E80;
    padding-bottom: 10px;
}


.content {
    flex: 1;
    padding: 20px;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .impressum {
        width: auto;
        border-right: none;
        border-bottom: 1px solid #ddd;
    }
}
footer {
    text-align: center;
    padding: 1rem;
    background: #2c3e50;
    color: white;
    margin-top: 2rem;
}

/*dienstleistung

      /* -------------------------------
       SCROLL FADE-IN
    -------------------------------- */
  .fade-in {
      opacity: 0;
      transform: translateY(30px);
      transition: opacity 0.7s ease, transform 0.7s ease;
  }

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* -------------------------------
   HOVER-ZOOM (Bilder)
-------------------------------- */
.angebot img {
    transition: transform 0.4s ease;
}

.angebot:hover img {
    transform: scale(1.08);
}

/* -------------------------------
   KARTEN-HOVER (optional, empfohlen)
-------------------------------- */
.angebot {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.angebot:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.15);
}

/* -------------------------------
   BUTTON MICROANIMATION
-------------------------------- */
.btn {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    background: #111;
    color: #fff;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.btn:active {
    transform: scale(0.96);
}

/* -------------------------------
   REDUCED MOTION (Barrierefrei)
-------------------------------- */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* GRID – automatisch responsive */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

/* Einzelnes Angebot */
.angebot {
    background: #fff;
    border-radius: 12px;
    padding: 1.2rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Überschrift */
.angebot h3 {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    text-align: center;
}

/* Bild – skaliert IMMER mit */
.angebot img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.8rem;
}

/* Text */
.angebot p {
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: center;
}

/* Tablets */
@media (max-width: 900px) {
    .angebot img {
        height: 180px;
    }
}

/* Smartphones */
@media (max-width: 600px) {
    .container {
        flex-direction: column;
    }

    aside.impressum {
        order: 2;
        margin-top: 2rem;
    }

    main.content {
        order: 1;
    }

    .angebot img {
        height: 160px;
    }
}
