/* ======================
   Reset & Basis
====================== */
* { margin:0; padding:0; box-sizing:border-box; }
html, body { height: 100%; }
body {
  font-family: Arial, sans-serif;
  background:#f4f4f9;
  color:#333;
  line-height:1.6;
}
.container { max-width: 1000px; margin: 36px auto; padding: 0 20px; }

/* ======================
   HERO (Vollbreites Logo)
====================== */
.hero {
  text-align: center;
  margin: 0;
  padding: 0;
  background: #fff;
}

.hero-image {
  width: 100%;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 400px; /* Höhe des Banners, anpassbar */
}

.claim {
  background: #fff;
  padding: 25px 20px 40px;
}

.claim h2 {
  margin: 0;
  color: #2a7bd8;
  font-weight: 700;
  font-size: 2rem;
}

.claim p {
  margin: 8px 0 0;
  color: #333;
  font-size: 1.1rem;
  font-style: italic;
}

/* ===== Handyoptimierung ===== */
@media (max-width: 768px) {
  .hero-image img {
    max-height: 260px; /* Banner wird kleiner auf Handy */
  }

  .claim h2 {
    font-size: 1.5rem;
  }

  .claim p {
    font-size: 1rem;
  }
}


/* ======================
   ABOUT: Portrait links,
   Über mich rechts
====================== */
.about{
  display:flex;
  gap:24px;
  align-items:flex-start;
  flex-wrap: nowrap;
}
.portrait{
  flex: 0 0 280px;              /* fester Bereich links */
  text-align:center;
}
.portrait img{
  width: 260px;                 /* Portraitgröße – anpassbar */
  height:auto;
  border-radius:16px;
  box-shadow:0 6px 18px rgba(0,0,0,.15);
}
.portrait figcaption{
  color:#666;
  font-size:.9rem;
  margin-top:8px;
}
.about-text{
  flex: 1 1 auto;               /* rechts füllt den Rest */
  min-width: 0;
}

/* ======================
   Details/Akkordeon
====================== */
details{
  background:#fff;
  border-radius:8px;
  margin: 0 0 20px;
  box-shadow:0 2px 5px rgba(0,0,0,.1);
}
details summary{
  padding:15px 20px;
  cursor:pointer;
  font-weight:bold;
  background:#007BFF;
  color:#fff;
  border-radius:8px;
  list-style:none;
}
details summary:hover{ background:#0056b3; }
details summary::-webkit-details-marker{ display:none; }
details .content{ padding:15px 20px; line-height:1.6; }

/* ======================
   Listen nebeneinander
====================== */
.list-container{ display:flex; gap:40px; flex-wrap:wrap; margin-bottom:20px; }
.list-section{ flex:1; min-width:240px; }
.icon-list{ list-style:none; }
.icon-list li{ display:flex; align-items:center; margin-bottom:12px; }
.icon-list li i{ margin-right:12px; font-size:1.3em; color:#007BFF; width:24px; text-align:center; }

/* ======================
   Tabellen
====================== */
table{ width:100%; border-collapse:collapse; margin-top:10px; table-layout:auto; }
th, td{ padding:8px 10px; border-bottom:1px solid #ddd; vertical-align: top; }
th{ background:#f4f4f4; text-align:left; }
td.year, th:first-child{
  white-space: nowrap;      /* >>> Jahreszahlen bleiben in einer Zeile */
  width: 140px;             /* feste Breite für die 1. Spalte */
}

/* ======================
   Footer
====================== */
footer{
  text-align:center;
  padding:18px 0;
  background:#2a7bd8;
  color:#fff;
  font-size:.9rem;
  margin-top:50px;
}

/* ======================
   Responsive (Handy)
====================== */
@media (max-width: 900px){
  .hero-logo{ width: 460px; }
}
@media (max-width: 700px){
  .hero{ padding: 44px 16px 36px; }
  .hero-logo{ width: 380px; }
  .claim h2{ font-size:1.6rem; }
  .about{
    flex-direction: column;      /* Portrait über dem Text */
    align-items: center;
  }
  .portrait{ flex: 0 0 auto; }
  .portrait img{ width: 220px; }
}
@media (max-width: 420px){
  .hero-logo{ width: 300px; }
  .claim h2{ font-size:1.4rem; }
  .portrait img{ width: 200px; }
}

/* ==================================================
   Angebotsseite – optimiert (Bildgrößen & Mobilansicht)
   ================================================== */

.angebot-header {
  text-align: center;
  background: #fff;
  padding: 40px 20px 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
}

.angebot-header h1 {
  color: #2a7bd8;
  font-size: 2rem;
  margin-bottom: 8px;
}

.angebot-header p {
  color: #444;
  font-size: 1.1rem;
  font-style: italic;
}

/* Ausklappbare Abschnitte */
.angebot-block {
  margin-bottom: 40px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  overflow: hidden;
}

.angebot-inhalt {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
}

.angebot-text-left,
.angebot-text-right {
  flex: 1 1 55%;
  line-height: 1.7;
  font-size: 1rem;
}

/* Bilder */
.angebot-bild-left,
.angebot-bild-right {
  flex: 0 0 35%;
  text-align: center;
}

.angebot-bild-left img,
.angebot-bild-right img {
  width: 250px;              /* ähnlich wie dein Portrait */
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  object-fit: cover;
}

/* Anfrage-Link */
.anfrage-link {
  display: inline-block;
  background: #007BFF;
  color: white;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 15px;
  transition: background 0.3s;
}

.anfrage-link:hover {
  background: #0056b3;
}

/* Abwechselnde Bildausrichtung */
.angebot-bild-left {
  order: 1;
}
.angebot-text-right {
  order: 2;
}

/* ==============================
   Responsive Design (Handy)
============================== */
@media (max-width: 900px) {
  .angebot-bild-left img,
  .angebot-bild-right img {
    width: 220px;
  }
}

@media (max-width: 700px) {
  .angebot-inhalt {
    flex-direction: column;
    text-align: center;
    padding: 15px;
  }

  .angebot-text-left,
  .angebot-text-right {
    flex: 1 1 100%;
    font-size: 1rem;
  }

  .angebot-bild-left,
  .angebot-bild-right {
    order: 0;
    flex: 1 1 100%;
    margin-bottom: 15px;
  }

  .angebot-bild-left img,
  .angebot-bild-right img {
    width: 200px;
    max-width: 85%;
  }

  .anfrage-link {
    font-size: 0.95rem;
    padding: 9px 16px;
  }
}

@media (max-width: 480px) {
  .angebot-bild-left img,
  .angebot-bild-right img {
    width: 180px;
  }

  .angebot-text-left,
  .angebot-text-right {
    font-size: 0.95rem;
  }

  .anfrage-link {
    width: 80%;
  }
}

/* ==================================================
   Sanfte Einblend-Animationen für Logo, Portrait & Angebotsbilder
   ================================================== */

/* Startzustand: leicht transparent und unten versetzt */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

/* Sobald sichtbar */
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Logo – leicht größerer Effekt */
.hero-logo {
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.hero-logo.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Portrait auf Startseite */
.portrait img {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.portrait img.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==================================================
   Angebot-Button (Startseite)
   ================================================== */
.angebot-button {
  display: inline-block;
  background-color: #007BFF;   /* Hauptfarbe (helles Blau) */
  color: #fff;
  font-weight: bold;
  padding: 12px 26px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.05rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: background-color 0.3s, transform 0.2s;
}

.angebot-button:hover {
  background-color: #0056b3;   /* dunkleres Blau beim Hover */
  transform: translateY(-2px);
}

