/* === APIN Footwear · Bootstrap 5 ready ===================================== */

/* 1) Design Tokens */
:root {
  --apin-blue: #005aa3;
  --apin-text: #4c4c4c;
  --apin-muted: #cccccc;

  /* Bootstrap Primary-Farbe global auf APIN-Blau setzen */
  --bs-primary: var(--apin-blue);
}

/* 2) Base */
html { scroll-behavior: smooth; }
body {
  background: #fff;
  color: var(--apin-text);
  font-family: "PT Sans Narrow", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  font-size: 1.25rem; /* ~20px */
  line-height: 1.4;
}
@media (min-width: 769px) {
  body { font-size: 1.5rem; } /* ~24px auf größeren Screens */
}
a { color: var(--apin-text); text-decoration: none; }
a:hover { color: var(--apin-text); text-decoration: underline; }

/* 3) Utilities */
.wp-15 { padding: 0 15%; }
.wp-10 { padding: 0 10%; }
.wp-5  { padding: 0 5%; }
.mbt-40 { margin: 40px 0; }
.mt-10  { margin-top: 10px; }
.mt-20  { margin-top: 20px; }
.mt-30  { margin-top: 30px; }
.mt-40  { margin-top: 40px; }
.mt-50  { margin-top: 50px; }
.mb-20  { margin-bottom: 20px; }
.mb-80  { margin-bottom: 80px; }
.pt-20  { padding-top: 20px; }
.pr-40  { padding-right: 30px; }
.blue   { color: var(--apin-blue); }

/* .small in BS5 = kleinere Schrift, deshalb umbenannt */
.text-small-apin { font-size: 1.125rem; }
@media (max-width: 768px) {
  .text-small-apin { font-size: 1rem; }
}

/* 4) Header / Navbar */
header.head {
  background: #fff;
  z-index: 1000;
  box-shadow: 0 0 5px #ccc;
}
/* Logo-Größe */
.navbar-brand img {
  max-height: 90px;
  height: auto;
  width: auto;
}
@media (max-width: 768px) {
  .navbar-brand img { max-height: 60px; }
}

/* Navigation: kein Unterstrich, Hover mit dunklerem APIN-Blau + hellgrauer Hintergrund */
.navbar .nav-link {
  color: var(--apin-text);
  text-decoration: none;
  transition: color 0.3s ease, background-color 0.3s ease;
  border-radius: 0.25rem;
  padding: 0.5rem 0.75rem;
}
.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: #00447f;
  background-color: rgba(0, 0, 0, 0.05);
  text-decoration: none;
}
.navbar .nav-link.active,
.navbar .nav-link[aria-current="page"] {
  color: var(--apin-blue);
  font-weight: 600;
  background-color: rgba(0, 0, 0, 0.08);
}

/* Burger-Icon-Farbe, falls nicht navbar-light */
.navbar {
  --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0,0,0,0.7)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* 5) Link-Styles */
.link-primary {
  color: var(--apin-blue) !important;
  text-decoration: none;
  padding: 0.1rem 0.25rem;
  border-radius: 0.25rem;
  transition: color 0.3s ease, background-color 0.3s ease;
}
.link-primary:hover,
.link-primary:focus {
  color: #00447f !important;
  background-color: rgba(0, 90, 163, 0.08);
  text-decoration: none;
}

/* 6) Startseiten-Knöpfe */
.main-list a {
  border: 1px solid var(--apin-blue);
  text-decoration: none;
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}
.main-list a:hover {
  background: var(--apin-blue);
  color: #fff;
  border-color: var(--apin-blue);
}

/* 7) Splash / Hero */
.splash { position: relative; margin-bottom: 40px; }
.splash img { width: 100%; height: auto; display: block; }
.splash .down-btn,
.splash a.down {
  color: var(--apin-blue);
  display: block;
  width: 30px;
  height: 30px;
  font-size: 70px;
  position: absolute;
  bottom: 100px;
  left: 50%;
  margin-left: -15px;
}
.splash .down-btn:hover,
.splash a.down:hover { color: var(--apin-text); }

/* 8) Main list (Startseiten-Kacheln) */
div.main-list { text-align: center; }
div.main-list h1,
div.main-list h2 {
  color: var(--apin-blue);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 1rem;
}
div.main-list ul {
  display: block;
  width: 40%;
  list-style: none;
  padding: 0;
  margin: 0 auto;
}
@media (max-width: 768px) {
  div.main-list ul { width: 90%; }
}
div.main-list ul li a {
  display: block;
  width: 100%;
  height: 64px;
  line-height: 64px;
  background: #ccc center/cover no-repeat;
  color: #fff;
  margin: 40px 0;
  text-shadow: #000 1px 1px 10px;
  border-radius: 0.25rem;
}
/* Hintergrundbilder */
div.main-list ul li a.female   { background-image: url('../img/button-bg1.jpg'); }
div.main-list ul li a.male     { background-image: url('../img/button-bg2.jpg'); }
div.main-list ul li a.children { background-image: url('../img/button-bg3.jpg'); }

/* 9) Galerie-Elemente */
.zoom { display: block; position: relative; }
.zoom:before {
  content: '';
  position: absolute;
  width: 27px;
  height: 27px;
  bottom: 10px;
  right: 10px;
  background: url("../img/ico-zoom.png") no-repeat 50% 50%;
}
.frame { border: 2px solid var(--apin-muted); margin-bottom: 20px; }

div.gallery { margin-top: 30px; }
div.gallery .helper { display: inline-block; height: 100%; vertical-align: middle; }
div.gallery a.gallery-item {
  overflow: hidden;
  display: block;
  width: 100%;
  height: 300px;
  border: 2px solid var(--apin-muted);
  background: no-repeat 50% 50%;
  background-size: 90%;
  font-size: 18px;
  margin-bottom: 30px;
  position: relative;
  text-align: center;
  padding: 5% 0;
  white-space: nowrap;
}
@media print {
  div.gallery a.gallery-item { height: auto; }
}
div.gallery a.gallery-item img {
  display: inline;
  vertical-align: middle;
  width: 95%;
  height: auto;
}
div.gallery a.gallery-item span.title { position: absolute; top: 10px; right: 10px; }
div.gallery h3 { color: var(--apin-blue); font-size: 24px; margin: 0 0 30px; }
div.gallery div.description { font-size: 18px; padding-right: 30px; }
div.gallery div.download { margin-top: 50px; line-height: 30px; }
@media (max-width: 768px) {
  div.gallery div.download { margin-top: 30px; }
}
div.gallery ul.menu { margin: 180px 0 70px; padding: 0; list-style: none; }
@media (max-width: 768px) {
  div.gallery ul.menu { margin: 40px 0 30px; }
}
div.gallery ul.menu li { margin: 0; padding: 0; }
div.gallery ul.menu li a { color: var(--apin-blue); }

/* 10) Footer */
footer.tail {
  background: var(--apin-blue);
  padding: 30px 0;
  color: #fff;
  text-align: right;
}

/* 11) Formulare */
.contact-form {
  max-width: 980px;
}
.contact-intro {
  color: #555;
  line-height: 1.45;
  max-width: 980px;
  padding-top: 0.5rem;
}
.contact-intro h2 {
  color: var(--apin-blue);
  font-size: 1.45rem;
  font-weight: 600;
  margin: 0 0 0.55rem;
}
.contact-intro p {
  font-size: 1.12rem;
  margin: 0;
}
.contact-intro .contact-intro-note {
  color: #666;
  font-size: 1rem;
  margin-top: 0.45rem;
}
.contact-form .form-label,
.inquiry-type-group legend {
  color: var(--apin-text);
  font-size: 1.05rem;
  font-weight: 600;
}
.inquiry-options {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.inquiry-choice {
  align-items: center;
  background: #fff;
  border: 2px solid var(--apin-muted);
  color: var(--apin-text);
  cursor: pointer;
  display: flex;
  justify-content: center;
  min-height: 58px;
  padding: 0.75rem 1rem;
  text-align: center;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.btn-check:checked + .inquiry-choice {
  background: var(--apin-blue);
  border-color: var(--apin-blue);
  color: #fff;
}
.btn-check:focus + .inquiry-choice {
  box-shadow: 0 0 0 0.2rem rgba(0, 90, 163, 0.2);
}
.dynamic-section[hidden] {
  display: none !important;
}
input[type="submit"] {
  border-radius: 0;
  padding: 10px 40px;
  background: var(--apin-blue);
  border: none !important;
  color: #fff;
  font-weight: 600;
  margin-top: 20px;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}
input[type="submit"]:hover,
input[type="submit"]:active { background: #00447f !important; color: #fff; }
input[type="submit"]:disabled {
  background: var(--apin-muted) !important;
  color: #666;
  cursor: not-allowed;
  opacity: 0.85;
}
input.form-control,
textarea.form-control {
  border-radius: 0;
  font-size: inherit;
  background: var(--apin-muted);
}
.form-control:focus {
  border-color: var(--apin-muted) !important;
  box-shadow: none;
}
.contact-help {
  color: #555;
  font-size: 1.08rem;
  line-height: 1.45;
  margin-top: 0.55rem;
}
.message-tools {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.message-tools[hidden] {
  display: none !important;
}
.speech-button {
  align-items: center;
  background: #fff;
  border: 2px solid var(--apin-blue);
  color: var(--apin-blue);
  display: inline-flex;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.5rem 1rem;
}
.speech-button svg {
  fill: currentColor;
}
.speech-button.is-listening {
  background: var(--apin-blue);
  color: #fff;
}
.speech-note {
  color: #666;
  font-size: 1rem;
  line-height: 1.35;
}
.speech-status {
  color: #666;
  font-size: 1rem;
}
label.error { font-size: 15px; color: red; }
.out { display: none; margin-bottom: 30px; }
.alert { border-radius: 0; }
.form-message {
  border-left: 4px solid var(--apin-blue);
  font-size: 1.08rem;
  line-height: 1.4;
  padding: 1rem 1.15rem;
}
.form-message-error {
  background: #fff;
  border-left-color: #b00020;
  color: #5f1722;
  box-shadow: inset 0 0 0 1px #e5e7eb;
}
.form-message-info {
  background: #f2f7fb;
  color: var(--apin-text);
}
.contact-success {
  border: 2px solid var(--apin-blue);
  max-width: 720px;
  padding: 1.5rem;
}
.contact-success-mark {
  align-items: center;
  background: var(--apin-blue);
  color: #fff;
  display: inline-flex;
  font-size: 1.4rem;
  height: 44px;
  justify-content: center;
  line-height: 1;
  margin-bottom: 1rem;
  width: 44px;
}
.contact-success p {
  font-size: 1.15rem;
  line-height: 1.45;
  margin-bottom: 1.25rem;
}
.contact-success-button {
  background: var(--apin-blue);
  border: none;
  border-radius: 0;
  color: #fff;
  font-weight: 600;
  min-height: 48px;
  padding: 0.65rem 1.25rem;
}
.contact-success-button:hover,
.contact-success-button:active {
  background: #00447f !important;
  color: #fff;
}

@media (max-width: 575.98px) {
  .contact-form .row.g-3 {
    --bs-gutter-y: 0.85rem;
  }
  .inquiry-options {
    grid-template-columns: 1fr;
  }
  .inquiry-choice {
    justify-content: flex-start;
    min-height: 54px;
    padding: 0.75rem 0.9rem;
    text-align: left;
  }
  input.form-control,
  textarea.form-control {
    min-height: 48px;
  }
  .submit-row {
    text-align: left !important;
  }
  .submit-row input[type="submit"] {
    min-height: 50px;
    width: 100%;
  }
  .contact-success {
    padding: 1.25rem;
  }
  .contact-success-button {
    width: 100%;
  }
  .speech-button {
    justify-content: center;
    width: 100%;
  }
  .speech-note {
    width: 100%;
  }
}

/* 12) Placeholder-Visibility */
::placeholder { opacity: 1; transition: opacity 0.3s ease; }
:focus::placeholder { opacity: 0; transition: opacity 0.3s ease; }
