@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter/Inter-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter/Inter-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 19px;
  line-height: 1.6;
  margin:0;
  padding:0;
  background-color: #f2e9d8
}

h2 {
  font-size: 2rem;
  color: #3a371b;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

* {
  box-sizing: border-box;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #555;
  line-height: 1.4;
}

.page-container {
  margin: 0 3%;
  background-color: #fff;
  margin-top: 112px;
  padding: 2.5rem;
  box-shadow: 0 0 20px rgba(104, 85, 224, 0.2);
  min-height: 80vh;
}

.homepage-container {
  background-color: #fff;
  margin: 0 3%;
  padding: 2.5rem;
  box-shadow: 0 0 20px rgba(104, 85, 224, 0.2);
}

.form-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.edit-button {
  width: 100%;
  padding: 1rem;
  background: #59c8d6;
  color: white;
  font-size: 2rem;
  border: none;
  border-radius: 5px;
  margin-top: 2rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  font-weight: 500;
}

.edit-button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(0,0,0,0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.edit-button:hover::after {
  width: 500px;
  height: 500px;
}

@media (max-width: 480px) {
  .page-container {
    margin-top: 90px;
    padding: 1.5rem 0.8rem;
  }

  .edit-button {
    font-size: 1.5rem;
    padding: 0.8rem;
  }
}

.alert-warning {
  background-color: #fff3cd;
  border: 1px solid #ffeeba;
  color: #856404;
  padding: 12px 16px;
  border-radius: 6px;
  margin: 15px 0;
  font-size: 0.95rem;
}

.alert-success {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  padding: 12px 16px;
  border-radius: 6px;
  margin: 15px 0;
  font-size: 0.95rem;
}


/* 
--------------------------
Login/Logout
--------------------------
*/

.login-container {
  padding: 2.5rem;
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
  margin-top: 20px;
  color:#3a371b;
  background-color: #e8f6f7;
  padding: 25px;
  border-radius: 12px;
  border: 2px solid #306869;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.login-container .input-group {
  position: relative;
  margin: 2rem 0;
}

.login-container input {
  width: 100%;
  padding: 0.8rem;
  font-size: 1.3rem;
  border: none;
  border-bottom: 2px solid #306869;
  background: transparent;
  color: black;
  outline: none;
}

.login-container label {
  position: absolute;
  left: 2%;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  transition: 0.3s;
  pointer-events: none;
}

.login-container input:focus ~ label,
.login-container input:valid ~ label {
  top: -10px;
  color: #59c8d6;
}

.login-container input:focus {
  border-bottom-color: #3a371b;
}

.login-container button {
  width: 100%;
  padding: 1rem;
  background: #59c8d6;
  color: white;
  font-size: 1.3rem;
  border: none;
  border-radius: 5px;
  margin-top: 2rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.login-container button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(0,0,0,0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.login-container button:hover::after {
  width: 500px;
  height: 500px;
}

.login-button {
  color: white;
  background-color: #59c8d6;
  border: none;
  border-radius: 5px;
  cursor:pointer;
  padding: 0.3rem 0.5rem;
  min-height: 10%;
  justify-content: center;
  position: relative;
  align-items: center;
  display: flex;
  text-align: center;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.login-button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(0,0,0,0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.login-button:hover::after {
  width: 200px;
  height: 200px;
}

.login-error {
  color: #3a371b !important;
  background-color: #f4e237;
  padding: 10px;
  border-radius: 6px;
  text-align: center;
}

@media (max-width: 480px) {
  .login-container button,
  .login-button {
    font-size: 1.4rem;
    padding: 1rem;
    border-radius: 8px;
  }

  .login-container input {
    font-size: 1.2rem;
    padding: 1rem;
  }

  .login-container {
    padding: 1.8rem;
  }
}


/* 
--------------------------
Navbar styles
--------------------------
*/

.navbar {
  background-color: #2f4f4f;
  position: absolute;
  z-index: 10;
  width: 100%;
  max-width: 100%;
  top: 0;
  left: 0;
  padding: 0.5rem 2rem;
}

.navbar-transparent {
  background-color: rgba(36, 82, 85, 0.7);
}

.navbar-container {
  display: flex;
  align-items: center;
  width: 100%;
}

.logo img {
  display: block;
  cursor: pointer;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 0.1rem;
  margin: 0;
  padding: 0;
  align-items: center;
  margin-left: auto;
  margin-right: 2rem;
  justify-content: space-between;
  width: 75%;
  max-width: 800px;
}

.navbar a {
  cursor: pointer;
  border: none;
  border-radius: 4px;
  margin: 0;
  width: auto;
  padding: 5px 12px;
  transition: 0.4s;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
}

.nav-links li a:not(.login-button) {
  color: #fff;
  border-radius: 5px;
  padding: 0.3rem 0.5rem;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.nav-links li a:not(.login-button)::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: #f4e237aa;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  z-index: -1;
}

.nav-links li a:not(.login-button):hover::before {
  width: 300px;
  height: 300px;
}

.nav-links a:not(.login-button):hover {
  color: #fff;
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
}

/* Ab einer bestimmten Breite umschalten */
@media (max-width: 842px) {
  .nav-links {
    display: none; /* Links verschwinden */
    flex-direction: column;
    background: #2f4f4f;
    position: absolute;
    top: 100%; /* direkt unter der Navbar */
    right: 1rem;
    width: max-content;
    padding: 1rem;
    border: 1px solid #e8f6f7;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    z-index: 1000;
  }

  .nav-links.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .navbar-container {
    justify-content: space-between; /* Logo links, Toggle rechts */
  }
}

@media (max-width: 480px) {
  .logo img {
    height: 70px;
  }

  .navbar {
    padding: 0.5rem 1rem 0.5rem 0.5rem;
  }

  .nav-links {
    width: auto;
    max-width: none;
  }
}


/* 
--------------------------
Hero Section styles
--------------------------
*/


.hero {
    position: relative;
    background-image: url('/assets/images/hero_image.webp');
    background-size: cover;
    background-position: center;
    min-height: 70vh;
    text-align: center;
    color: #ffffff;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 120px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(0,0,0,0.0),
        rgba(0,0,0,0.45)
    );
    z-index: 1;
}

.hero-textbox {
    position: relative;
    z-index: 2;
}

.hero-textbox h1 {
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 0 3px 8px rgba(0,0,0,0.6);
}

/* Responsive Anpassung */
@media (max-width: 836px) {
  .hero-textbox {
    min-width: 30%;
    padding: 4% 2%;
  }

  .hero-textbox h1 {
    font-size: 1.7rem;
    white-space: normal;        
    word-break: keep-all;         
    overflow-wrap: break-word;      
    hyphens: auto;              
  }
}


.subtitle {
  text-align: center;
  margin-bottom: 1rem;
}

.text-container {
  max-width: 1400px;
  width: 100%;
  color: #306869;
  margin: 0 auto;
}

/*
--------------------------
Pinboard styles
--------------------------
*/

.pinboard {
  max-width: 1400px;
  flex: 1;
  background-color: #e8f6f7;
  padding: 25px;
  border-radius: 12px;
  border: 2px solid #306869;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.pin {
  margin-bottom: 1rem;
  padding: 0.5rem;
  color: #3a371b;
  background: #f9f9f9;
  border: 2px solid #306869;
  border-radius: 10px;

}

/* --- Grundlayout --- */
h2, h3 {
    color: #3a371b;
    margin-bottom: 15px;
}

.pin-edit-form {
    background: #ffffff;
    border: 2px solid #245255;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* --- Eingabefelder --- */
.pin-edit-form input[type="text"],
.pin-edit-form input[type="date"],
.pin-edit-form input[type="time"],
.pin-edit-form input[type="file"],
.pin-edit-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border: 2px solid #245255;
    border-radius: 8px;
    font-size: 1rem;
    background: #f9f9f9;
    color: #3a371b;
}

.file-upload-wrapper {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border: 2px solid #245255;
    border-radius: 8px;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    gap: 14px; 
    color: #3a371b;
}


.file-upload-label {
    background: #59c8d6;
    padding: 8px 14px;
    border-radius: 6px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}


.file-upload-label:hover {
    background: #3fa7b3;
}

#pdf_file {
    display: none; /* echtes Input verstecken */
}

#image {
    display: none; /* echtes Input verstecken */
}

.file-upload-name {
    font-size: 14px;
    color: #444;
    font-style: italic;
}


.pin-edit-form textarea {
    min-height: 80px;
}

/* --- Labels --- */
.pin-edit-form label:not(.file-upload-label) {
    font-weight: 600;
    color: #3a371b;
    margin-bottom: 5px;
    display: block;
}

/* --- Buttons (Speichern / Hinzufügen) --- */
.pin-edit-form button[type="submit"]:not(.delete-button) {
    padding: 10px 16px;
    background: #245255;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
}

.pin-edit-form button[type="submit"]:hover:not(.delete-button) {
    background: #59c8d6;
}

/* --- Abstand zwischen den Formularen --- */
form + form {
    margin-top: 10px;
}

/* --- Responsive --- */
@media (max-width: 600px) {
    .pin-edit-form {
        padding: 15px;
    }

    .pin-edit-form button[type="submit"],
    .delete-button {
        width: 100%;
        text-align: center;
    }

    .pinboard {
        padding: 10px;
    }
}

.pin-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

/* Speichern-Button */
.save-button {
    padding: 8px 14px;
    background: #245255;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
}

.save-button:hover {
    background: #59c8d6;
}

/* Löschen-Button */
.delete-button {
    padding: 10px 16px;
    background: #c65d57;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
}

.delete-button:hover {
    background: #a94e49;
}

.delete-button .delete-icon {
    color: #ffffff;
    vertical-align: middle;
    position: relative;
    top: -2px;
    margin-right: 6px;
}

/* Damit das Delete-Form nicht die Flex-Ausrichtung zerstört */
.pin-actions form {
    margin: 0;
}


/* 
--------------------------
Footer styles
--------------------------
*/

footer {
  text-align: center;
  padding: 1rem;
  font-size: small;
}

footer p {
  margin: 0;
}

.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 0.6px;
}

footer a {
  color: #3a371b;
  text-decoration: none;
  margin: 0 0 0.6rem 0;
  padding: 0.2rem 0.8rem;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: color 0.2s ease, background-color 0.2s ease;
}

footer a:hover {
  background-color: rgba(74, 106, 106, 0.1);
  color: #4a6a6a; /* hellere Version von #2f4f4f */
}

footer .login-link {
  opacity: 0.7;
}

footer .login-link:hover {
  opacity: 1;
}

@media (max-width: 480px) {
  .footer-links {
    flex-direction: column;
    gap: 0.3rem;
  }
}



/* 
--------------------------
Photo Gallery styles
--------------------------
*/

/* Basis: Grid mit mehreren Spalten */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.grid__figure {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 3px 16px rgba(0,0,0,0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  max-width: 500px;
}

.grid__figure:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.grid__figure img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  margin-bottom: 8px;
}

.grid__figure figcaption {
  font-size: 1.05rem;
  color: #3a371b;
  margin: 0;
}

/* 📱 Auf sehr schmalen Bildschirmen nur eine Spalte */
@media (max-width: 480px) {
  .grid {
    grid-template-columns: 1fr; /* nur eine Spalte */
  }

  .grid__figure img {
    height: 180px; /* Höhe automatisch anpassen */
  }
}

.album-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.album-header h1 {
  margin: 0;
  color: #3a371b;
}

.album-header a {
  cursor: pointer;
  border: none;
  border-radius: 4px;
  margin: 0;
  width: 55px;
  padding: 0 0;
  transition: 0.4s;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-edit-form {
    margin-bottom: 3px;
}

/* --- Eingabefelder --- */
.photo-edit-form input[type="text"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 3px;
    border: 2px solid #245255;
    border-radius: 8px;
    font-size: 1rem;
    background: #f9f9f9;
    color: #3a371b;
}

.photo-description-textarea {
    width: 100%;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 0.95rem;
    resize: vertical; /* erlaubt nur Höhe ändern */
    box-sizing: border-box;
}

.cover-toggle-form {
    display: inline-block;
}

.cover-toggle {
    background: #ddd;
    color: #666;
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.2s;
}

.cover-toggle:hover {
    background: #ccc;
}

.cover-toggle.active {
    background: #245255;
    color: white;
    font-weight: bold;
}

.block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.block-header h2,
.block-header h3 {
  margin: 0;
}

.block-header a {
  cursor: pointer;
  border: none;
  border-radius: 4px;
  margin: 0;
  width: 55px;
  padding: 0 0;
  transition: 0.4s;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox {
  display: none; /* versteckt standardmäßig */
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  max-width: 90%;
  max-height: 80%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.lightbox-close {
  position: absolute;
  top: 20px; right: 30px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

#lightbox-caption {
  margin-top: 12px;
  color: #fff;
  text-align: center;
  font-size: 1rem;
}

.pagination {
    margin-top: 30px;
    text-align: center;
}

.page-btn {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 5px;
    border: 2px solid #245255;
    border-radius: 8px;
    color: #245255;
    text-decoration: none;
    font-size: 1rem;
    transition: 0.3s ease;
}

.page-btn:hover {
    background: #59c8d6;
    color: #ffffff;
}

.page-btn.active {
  background: #245255;
  color: #ffffff;
}

.back-button {
  display: inline-block;
  color: #245255;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s ease;
}

.back-button:hover {
  color: #59c8d6;
}

form button[type="submit"]:not(.delete-button) {
  padding: 10px 16px;
  background: #245255;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
}

form button[type="submit"]:hover:not(.delete-button) {
  background: #59c8d6;
}

hr {
  border: none;
  border-top: 2px solid #245255;
  margin: 30px 0;
}

.cover-button {
  background: #f0c040;
  border: none;
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 4px;
  font-weight: bold;
}

/* Album-Grid */
.album-grid {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

/* Album-Karte */
.album-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.album-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.album-item-edit-page {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.album-edit-form {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-direction: column;
  background: #ffffff;
  padding: 20px;
}

.album-edit-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 8px;
}

/* --- Eingabefelder --- */
.album-edit-form input[type="text"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  border: 2px solid #245255;
  border-radius: 8px;
  font-size: 1rem;
  background: #f9f9f9;
  color: #3a371b;
}

/* Cover-Bild */
.album-cover {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  background: #f3f3f3;
}

/* Album-Titel */
.album-title {
    display: block;
    padding: 12px 15px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    color: #3a371b;
}

.album-item a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.album-cover.placeholder {
    width: 100%;
    height: 160px; /* etwas größer für bessere Proportionen */
    background: #f2f2f2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-icon {
    width: 72px;   /* größer */
    height: 72px;  /* größer */
    stroke: #999;
    fill: none;
    stroke-width: 2;
}



/*
--------------------------
Contact styles
--------------------------
*/

.contact-hero {
  background-image: url('/assets/images/hero_contact.webp');
  background-size: cover;
  background-position: center;
  padding: 80px 20px;
  text-align: center;
  color: white;
  border-radius: 12px;
}

.contact-hero h1 {
  color: #f4e237;
  font-size: 3rem;
  margin-bottom: 0;
}

.contact-hero h1,
.contact-hero p {
  text-shadow: 0 2px 6px rgba(0,0,0,0.8);
  margin-top:0;
}

.contact-info {
  flex: 1;
  background-color: #fff;
  padding: 5%;
  border-radius: 12px;
  color: #3a371b;
}

.contact-info h2 {
  margin-top: 0;
}

.contact-form {
  max-width: 1400px;
  align-self: center;
  flex: 1;
  background-color: #e8f6f7;
  padding: 25px;
  border-radius: 12px;
  border: 2px solid #306869;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

* Eingabefelder */
.input-group {
  margin-bottom: 22px;
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  color: #3a371b;
  font-weight: 600;
  font-size: 1rem;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #306869;
  border-radius: 10px;
  font-size: 1rem;
  color: #3a371b;
  background-color: #f9f9f9;
  transition: all 0.25s ease;
}

/* Fokus-Effekt */
.input-group input:focus,
.input-group textarea:focus {
  border-color: #59c8d6;
  background-color: #ffffff;
  box-shadow: 0 0 6px rgba(89, 200, 214, 0.5);
  outline: none;
}

.char-counter {
  font-size: 0.9rem;
  color: #666;
  margin-top: 4px;
  text-align: right;
}

.char-counter.warning {
  color: #b85c00; /* warmes Orange */
}

.char-counter.limit {
  color: #b00020; /* dezentes Rot */
}


/* Button */
.contact-button {
  background-color: #59c8d6;
  color: white;
  padding: 14px 20px;
  border-radius: 10px;
  border: none;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.contact-button:hover {
  background-color: #306869;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(48, 104, 105, 0.3);
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Mobile */
@media (max-width: 768px) {
  .contact-form {
      padding: 25px;
  }
}

@media (min-width: 950px) {
  .contact-hero {
    padding: 10% 20px;
  }
}

/* 
--------------------------
Impressum styles
--------------------------
*/

.impressum-section h2 {
    color: #245255;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.impressum-section p {
  background: #ffffff;
  color: #3a371b;
  margin: 8px 0 12px 0;
  font-size: 1rem;   
}

.impressum-section a {
  color: #245255;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem; 
}

.impressum-section a:hover {
  color: #59c8d6;
}

.impressum-section ol {
  margin-left: 20px;
  padding-left: 20px;
  color: #3a371b;
}

.impressum-section ol li {
  margin-bottom: 15px;
  line-height: 1.6;
}

.impressum-section ol[type="a"] {
  margin-top: 10px;
}

.impressum-section ol[type="a"] li {
  margin-bottom: 12px;
}

.impressum-section strong {
  color: #245255;
  font-size: 1.1rem;
}

.impressum-section span {
  color: #3a371b;
  font-size: 0.9rem;
}

/* 
--------------------------
Infobox styles
--------------------------
*/

.info-box {
  text-align: left;
  width: 100%;
  max-width: 1400px;
  background: #ffffff;
  border: 2px solid #245255;
  border-radius: 12px;
  padding: 20px 25px;
  margin: 30px 0;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.info-box h3 {
  margin-top: 0;
  color: #3a371b;
}

.info-text {
  color: #3a371b;
  line-height: 1.6;
  white-space: pre-line;
}

.pdf-list {
  margin-top: 20px;
  padding-top: 10px;
  border-top: 2px solid #245255;
}

.pdf-list h4 {
  margin: 0 0 10px 0;
  color: #245255;
}

.pdf-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pdf-list li {
  margin-bottom: 8px;
}

.pdf-list a {
  color: #245255;
  font-weight: 600;
  text-decoration: none;
}

.pdf-list a:hover {
  color: #59c8d6;
}

.pdf-admin-list li {
  margin-bottom: 10px;
}

.pdf-delete-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.pdf-delete-container .delete-button {
  position: relative;
  top: 0px;
}


/* 
--------------------------
Intern pdf styles
--------------------------
*/

.pdf-search {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 18px;
  border: 1px solid #cfd6dd;
  border-radius: 6px;
  font-size: 1rem;
}

.intern-pdf-section .pdf-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.intern-pdf-section .pdf-row {
  padding: 12px 0;
  border-bottom: 1px solid #e2e6ea;
}

.intern-pdf-section .pdf-row:last-child {
  border-bottom: none;
}

.intern-pdf-section .pdf-title {
  font-weight: 600;
  font-size: 1.05rem;
  color: #2a4d69;
  text-decoration: none;
}

.intern-pdf-section .pdf-title:hover {
  text-decoration: underline;
}

.intern-pdf-section .pdf-description {
  margin-top: 4px;
  font-size: 0.95rem;
  color: #444;
  line-height: 1.4;
}
