/* Zentrierung und Grundlayout */
body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #fff6de; /* sanftes Beige */
  color: #4b3f2f;
  text-align: center;
}

/* Willkommensbox */
.intro-box {
  background: linear-gradient(135deg, #fceabb, #f8b500); /* warmer Farbverlauf */
  border: 3px solid #d17b00;
  border-radius: 12px;
  padding: 20px;
  margin: 20px auto;
  max-width: 800px;
  text-align: center;
  font-family: "Comic Sans MS", cursive, sans-serif;
  font-size: 1.2em;
  color: #333;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.intro-box p {
  margin: 0;
  line-height: 1.5;
}


/* Tabellenüberschrift */
h1, h2 {
  color: #80653c;
  margin-bottom: 20px;
}

/* Tabelle stilvoll darstellen */
.beschreibung-tabelle {
  margin: 0 auto;
  width: 95%;
  max-width: 1000px;
  border-collapse: collapse;
  background-image: url('https://namenportal.ch/images/hint_pfoten01.png');
  background-repeat: repeat;
  background-size: 80px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5); 
  border: 3px solid #999;   
  border-radius: 12px;
  overflow: hidden;
}

.beschreibung-tabelle thead {
  background-color: #f0f0f0;
}

.beschreibung-tabelle th,
.beschreibung-tabelle td {
  border: 1px solid #aaa;            
  padding: 12px;
  text-align: left;
}

.beschreibung-tabelle tr:last-child td {
  border-bottom: none;
}

.beschreibung-tabelle img {
  max-width: 120px;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

/* Responsive Anpassung */
@media (max-width: 768px) {
  .beschreibung-tabelle,
  .beschreibung-tabelle thead,
  .beschreibung-tabelle tbody,
  .beschreibung-tabelle th,
  .beschreibung-tabelle td,
  .beschreibung-tabelle tr {
    display: block;
    width: 95%;
  }

  .beschreibung-tabelle thead {
    display: none;
  }

  .beschreibung-tabelle td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    position: relative;
  }

  .beschreibung-tabelle td::before {
    content: attr(data-label);
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    color: #555;
  }
}

/* === Navigation === */
nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  padding: 0;
  justify-content: center;
}

nav a {
  text-decoration: none;
  color: #4CAF50;
  font-weight: bold;
}
/* === Formular-Layout === */
form {
  background-color: #d1d6d6;       /* Haupt-Hintergrund Suchformular */
  border: 2px solid #d8c9a7;       /* sanftes Beige für Rahmen */
  border-radius: 12px;
  padding: 20px;
  max-width: 600px;
  margin: 2em auto;
  box-shadow: 0 6px 14px rgba(0,0,0,0.08); /* leichter Schatten */
  font-family: "Segoe UI", sans-serif;
  color: #3b2f20;                  /* warmer Textton */
}

/* Eingabefelder */
form input[type="text"],
form input[type="email"],
form input[type="password"],
form textarea,
form select {
  width: 100%;
  padding: 10px 12px;
  margin: 8px 0;
  border: 1px solid #d8c9a7;
  border-radius: 8px;
  background-color: #ffebcf;       /* leicht dunkler als Hintergrund */
  color: #3b2f20;
  font-size: 1em;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

form input:focus,
form textarea:focus,
form select:focus {
  border-color: #c59d5f;           /* wärmerer Rahmen beim Fokus */
  box-shadow: 0 0 6px rgba(197,157,95,0.4);
  outline: none;
}

/* Labels */
form label {
  font-weight: 500;
  margin-bottom: 4px;
  display: block;
  color: #4b3f2f;
}

/* Buttons */
form button {
  background-color: #f4e8d9;       /* harmonisch zum Formular */
  border: 1px solid #c9b89a;
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 1em;
  font-weight: 600;
  color: #3b2f20;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

form button:hover {
  background-color: #cdc5b4;       /* zartes Creme beim Hover */
  border-color: #c59d5f;
  box-shadow: 0 3px 6px rgba(0,0,0,0.12);
}

/* === Hinweis unter dem Suchformular bei Babynamen suchen === */
.such-hinweis {
  background: #f0f8ff; /* sanftes Hellblau */
  border: 2px solid #3399cc;
  border-radius: 10px;
  padding: 15px;
  margin: 20px auto;
  max-width: 800px;
  font-size: 1em;
  color: #333;
  line-height: 1.5;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.such-hinweis p {
  margin: 0;
  text-align: left;
}


/* === Willkommensbox === */
.willkommen {
  background-color: #fffaf4;
  border-left: 6px solid #4CAF50;
  padding: 1.5em;
  margin-bottom: 2em;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.willkommen h1 {
  margin-top: 0;
  color: #4CAF50;
  font-size: 1.8em;
}

.willkommen p {
  margin: 0.5em 0;
  line-height: 1.6;
}

/* === Banner Tiernamen === */
.tier-banner {
  background-image: url('https://namenportal.ch/images/banner_hint-01.png');
  background-size: cover;
  background-position: center;
  padding: 4em 2em;
  color: #d2f107;
  text-align: center;
  border-radius: 12px;
  margin: 2em auto;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  width: 95%;
  max-width: 1200px;
  box-sizing: border-box;
}

.banner-content {
  background-image: url('https://namenportal.ch/images/logo-1.png');
  background-repeat: no-repeat;
  width: 40%;
  display: block;
  padding: 2em;
  border-radius: 8px;
  margin: 0 auto;
}

.banner-content h1 {
  font-size: 3.5em;
  margin: 0;
  color: #d2f107;
  font-weight: bold;
}

.banner-content p {
  font-size: 1.8em;
  color: #d3d3d3;
  font-weight: bold;
  margin-top: 0.8em;
}

/* === Banner Babynamen === */
.babynamen-banner {
  background-image: url('https://namenportal.ch/images/hint_babynamen.png');
  background-size: cover;
  background-position: center;
  padding: 4em 2em;
  color: #d2f107;
  text-align: center;
  border-radius: 12px;
  margin: 2em auto;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  width: 95%;
  max-width: 1200px;
  box-sizing: border-box;
}

.babynamen-content {
  background-image: url('https://namenportal.ch/images/logo-babynamen.png');
  background-repeat: no-repeat;
  width: 40%;
  display: block;
  padding: 2em;
  border: 3px solid #ccc; 
  border-radius: 8px;
  margin: 0 auto;
}

.babynamen-content h1 {
  font-size: 3.5em;
  margin: 0;
  color: #d2f107;
  font-weight: bold; 
}

.babynamen-content p {
  font-size: 1.8em;
  color: #d3d3d3;
  font-weight: bold;
  margin-top: 0.8em;
}


/* === Tabelle Babynamen === */
.namens-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin: 2em auto;
  max-width: 1000px;
  border: 4px solid #c59d5f;
  border-radius: 12px;
  border-collapse: separate;
  border-spacing: 8px;
  background-color: #f4e8d9; /* Haupt-Hintergrund */
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
  overflow: hidden;
  font-size: 1em;
  padding: 7px;
}

.namens-zelle {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 10px;
  background-color: #a5d79f; /* etwas heller als Tabellenhintergrund */
  border: 3px solid #c59d5f;
  border-radius: 12px;
}

/* Zellen */
.namens-tabelle td {
  padding: 12px;
  border-bottom: 1px solid #d7c9aa;
  text-align: center;
  border-radius: 6px;
  color: #3b2f20;
  background-color: #fdf6ec; /* harmonisch zum Tabellenhintergrund */
}

/* Buttons */
.namenslink {
  width: 100%;
  padding: 10px;
  text-align: center;
  background: #f4e8d9;              /* gleiche Farbwelt wie Tabelle */
  border: 1px solid #c9b89a;        /* sanftes Beige-Braun für Rahmen */
  border-radius: 6px;
  cursor: pointer;
  color: #3b2f20;                   /* dunkler Text für Kontrast */
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.namenslink:hover {
  background-color: #fdf0d5;        /* zartes Creme beim Hover */
  border-color: #c59d5f;            /* wärmerer Rahmen */
  box-shadow: 0 3px 6px rgba(0,0,0,0.12);
}

.namens-tabelle tr:hover {
  background-color: #e8d8b8;        /* Hover-Effekt */
  transition: background-color 0.3s ease;
}

/* Like-Button */
.like-button {
  margin-top: 5px;
  background-color: #f4e8d9;        /* gleiche Basis wie Tabelle */
  border: 1px solid #c9b89a;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2em;
  color: #c95c5c;                   /* warmes Rot, weniger grell */
  transition: all 0.3s ease;
  padding: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.like-button:hover {
  background-color: #fdf0d5;        /* sanftes Creme beim Hover */
  transform: scale(1.2);
  border-color: #c59d5f;
}

/* Nur das Like-Formular */
.like-form {
  background-color: #e6f2ff;   /* helles Blau */
  padding: 12px;              /* etwas Abstand innen */
  border-radius: 6px;         /* sanft abgerundete Ecken */
  box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* leichter Schatten */
  margin-top: 8px;            /* Abstand nach oben */
}
/* Nur das Namenslink-Formular */
.namenslink-form {
  background-color: #e6f2ff;   /* helles Blau */
  padding: 12px;              /* etwas Abstand innen */
  border-radius: 6px;         /* sanft abgerundete Ecken */
  box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* leichter Schatten */
  margin-bottom: 10px;        /* Abstand nach unten */
}

/* === Geschlechtsfarben === */
.maennlich {
  color: #2b6cb0;
  font-weight: bold;
}

.weiblich {
  color: #d53f8c;
  font-weight: bold;
}

/* === Tiernamen-Tabelle === */
.tiernamen-tabelle {
  margin: 30px auto;
  border-collapse: collapse;
  width: 90%;
  max-width: 1200px;
  background: #fdfdfd;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 8px;
  overflow: hidden;
  text-align: left;
}

.tiernamen-tabelle thead {
  background: linear-gradient(135deg, #a3d8f4, #d6f5d6);
  color: #333;
  font-weight: bold;
}

.tiernamen-tabelle th,
.tiernamen-tabelle td {
  padding: 12px 16px;
  border-bottom: 1px solid #ddd;
}

.tiernamen-tabelle tbody tr:hover {
  background-color: #c2d7e9;
}

/* Geschlecht farblich hervorheben */
.tiernamen-tabelle td.maennlich {
  color: #1a73e8;
  font-weight: bold;
}
.tiernamen-tabelle td.weiblich {
  color: #d81b60;
  font-weight: bold;
}

/* Pagination */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
  font-family: sans-serif;
  font-size: 1rem;
}

.pagination a {
  padding: 8px 14px;
  background-color: #0077cc;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.pagination a:hover {
  background-color: #005fa3;
}

.pagination span {
  font-weight: bold;
  color: #333;
  padding: 8px 14px;
}

@media (max-width: 480px) {
  .pagination {
    flex-direction: column;
    gap: 6px;
  }

  .pagination a,
  .pagination span {
    width: 100%;
    text-align: center;
  }
}

.witz-container {
  display: flex;
  justify-content: center;
  margin: 2em auto;

/* === Footer === */

}
.site-footer {
  background-color: #b09b7c;   
  color: #35352b;              
  padding: 1.5em 0;
  margin: 3em auto 0;          
  border-top: 3px solid #d9cbb5;
  width: 70%;                  
}

.footer-content {
  display: flex;
  justify-content: space-between; /* Hund links, Katze rechts */
  align-items: center;            /* vertikal mittig */
}

.footer-text {
  text-align: center;
  flex: 1;                        /* nimmt mittleren Platz ein */
}

.footer-img {
  height: 70px;
  width: auto;
  margin: 0 8.5em; /* horizontaler Abstand links und rechts */
}

/* Info-Seite */
.bar-container {
  width: 60%;              /* Breite für Balken */
  margin: 0 auto 20px auto; /* zentriert + Abstand unten */
  border: 1px solid #635e5e;
  background-color: #eee;
  border-radius: 5px;
}

.bar {
  height: 30px;
  min-width: 100px; /* oder ein Wert, der passt, damit der Text noch sichtbar ist */
  border-radius: 5px 0 0 5px; /* nur links rund, rechts wächst dynamisch */
  text-align: center;
  color: white;
  line-height: 30px;
  font-weight: bold;
}

.hund  { background-color: #97ec9b; } /* grün */
.katze { background-color: #abd1ce; } /* blau */
.baby  { background-color: #e91e63; } /* rosa */

.zahlen {
  margin-bottom: 40px;
}
.witz-tabelle {
  border-collapse: collapse;
  width: 70%;
  background-color: #f0f5ce;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border: 3px solid #4b3f2f;
  border-radius: 8px;
  overflow: hidden;
}

.witz-tabelle th {
  background-color: #c59e6a;
  color: #f5f5f0;
  padding: 1em;
  font-size: 1.2em;
}

.witz-tabelle td {
  padding: 1em;
  border-bottom: 1px solid #d9cbb5;
  font-size: 1.1em;
  text-align: center; 
}

.witz-tabelle tr:last-child td {
  border-bottom: none;
}
    .witz::before {
      content: "🐾 ";
    }
/* Allgemeine Styles bleiben wie gehabt … */

/* Impressum-spezifische Styles */

 .impressum {
      max-width: 800px;
      margin: auto;
      background: #eee8e8;
      padding: 2em;
      border: 3px solid #ddd;
      border-radius: 8px;
      box-shadow: 0 2px 6px rgba(0,0,0,0.1);
      text-align: left;

    }

.impressum h1 {
  text-align: center;
  margin-top: 30px;
  color: #333;
}

.impressum table {
  width: 80%;
  margin: 30px auto; /* zentriert die Tabelle */
  border-collapse: collapse;
  background-color: #ece7e7;
  box-shadow: 0 0 12px rgba(0,0,0,0.1);
}

.impressum th,
.impressum td {
  border: 3px solid #ddd;
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.impressum th {
  background-color: #4CAF50;
  color: white;
  width: 25%;
}

.impressum tr:nth-child(even) {
  background-color: #f2f2f2;
}

.impressum caption {
  caption-side: top;
  font-size: 1.2em;
  margin-bottom: 10px;
  font-weight: bold;
}