/* style.css – Elegant Classic CSS for Tierwissen Nürnberg */

/* CSS RESET & NORMALIZATION */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #F7F7F7;
  color: #222;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a {
  color: #224160;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #FFD600;
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  margin: 0 0 16px 24px;
}
li {
  line-height: 1.7;
  margin-bottom: 6px;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Georgia, "Times New Roman", serif;
  color: #224160;
  letter-spacing: 0.01em;
  font-weight: 700;
}
h1 { font-size: 2.7rem; line-height: 1.16; margin-bottom: 20px; }
h2 { font-size: 2rem; line-height: 1.18; margin-bottom: 18px; }
h3 { font-size: 1.25rem; line-height: 1.3; margin-bottom: 12px; }
h4, h5, h6 { font-size: 1.05rem; margin-bottom: 10px; }
p {
  color: #333;
  font-size: 1.08rem;
  margin-bottom: 16px;
  font-family: 'Open Sans', Arial, sans-serif;
}
strong, b {
  font-weight: bold;
}
.text-section p,
.text-section li {
  color: #222;
}

/* CONTAINER AND SPACING */
.container {
  width: 100%;
  max-width: 1110px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(34,65,96,0.07);
  /* classic subtle shadow */
}
main > section:not(.hero):not(.contact-cta):not(.section) {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.hero {
  background: #EFEFE9;
  padding: 48px 0 36px 0;
  margin-bottom: 56px;
  border-radius: 0 0 32px 32px;
  box-shadow: 0 2px 16px rgba(34,65,96,0.07);
}
.contact-cta {
  background: #224160;
  color: #fff;
  border-radius: 20px 20px 0 0;
  margin-top: 30px;
  margin-bottom: 0;
  padding: 40px 0;
  box-shadow: 0 2px 12px rgba(34,65,96,0.08);
}
.contact-cta h2 {
  color: white;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 20px;
}
.feature-grid,
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.feature-grid > div {
  flex: 1 1 260px;
  background: #f7f7f7;
  border-radius: 14px;
  padding: 24px 14px 20px 14px;
  box-shadow: 0 1px 6px rgba(34,65,96,0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: box-shadow .2s, transform .2s;
}
.feature-grid > div:hover {
  box-shadow: 0 6px 24px rgba(34,65,96,0.11);
  transform: translateY(-2px) scale(1.025);
}

.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(34,65,96,0.08);
  padding: 24px;
  margin-bottom: 20px;
}
.card-container > .card {
  margin-bottom: 20px;
  position: relative;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(34,65,96,0.08);
  margin-bottom: 20px;
  transition: box-shadow 0.2s;
  border-left: 5px solid #FFD600;
}
.testimonial-card:hover {
  box-shadow: 0 6px 24px rgba(34,65,96,0.13);
}
.testimonial-card p {
  color: #224160;
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1.13rem;
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 0;
}
.testimonial-card span {
  color: #888;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
}
.text-section {
  margin-bottom: 16px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.contact-info-snippet {
  font-size: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #fff;
}
.contact-info-snippet img {
  width: 22px;
  height: 22px;
  vertical-align: text-bottom;
  margin-right: 8px;
}

/* HEADER/NAVIGATION */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 14px rgba(34,65,96,0.06);
  position: sticky;
  top: 0;
  z-index: 40;
}
header .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding: 16px 20px 16px 20px;
  justify-content: space-between;
  min-height: 76px;
}
header img[alt="Tierwissen Nürnberg"] {
  max-width: 180px;
  height: auto;
  display: block;
}
header nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
header nav a {
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1.06rem;
  color: #224160;
  font-weight: 500;
  border-radius: 6px;
  padding: 6px 11px;
  transition: background .16s, color .16s;
  line-height: 1.36;
}
header nav a:hover,
header nav a:focus {
  background: #224160;
  color: #FFD600;
}
header nav .btn-primary {
  background: #FFD600;
  color: #224160 !important;
  padding: 7px 18px;
  font-weight: 700;
  border-radius: 7px;
  box-shadow: 0 2px 6px rgba(34,65,96,0.09);
  transition: background .16s, color .16s, box-shadow 0.2s;
}
header nav .btn-primary:hover,
header nav .btn-primary:focus {
  background: #FFF38A;
  color: #224160;
  box-shadow: 0 6px 22px rgba(34,65,96,0.12);
}
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #224160;
  font-size: 2.1rem;
  cursor: pointer;
  margin-left: 10px;
  line-height: 1;
  z-index: 50;
}

/* MOBILE MENU */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(34, 65, 96, 0.90);
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.77,0,.18,1);
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
}
.mobile-menu.active {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #FFD600;
  font-size: 2.2rem;
  margin: 20px 26px 0 0;
  cursor: pointer;
  align-self: flex-end;
  z-index: 101;
  padding: 6px;
  transition: color .15s;
}
.mobile-menu-close:hover { color: #fff; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px 40px 0 40px;
  width: 100%;
  align-items: flex-end;
}
.mobile-nav a {
  color: #FFF;
  background: none;
  font-size: 1.23rem;
  font-family: 'Montserrat', Georgia, serif;
  font-weight: 500;
  border-radius: 4px;
  padding: 8px 0;
  margin-bottom: 2px;
  transition: color .13s, background .13s;
  width: 100%;
  text-align: right;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  background: #FFD600;
  color: #224160;
}

/* FOOTER */
footer {
  width: 100%;
  background: #F7F7F7;
  color: #224160;
  border-top: 1px solid #E6E3DB;
  padding: 36px 0 16px 0;
  font-size: 1.11rem;
}
footer .container {
  display: flex;
  flex-direction: column;
}
footer .content-wrapper {
  display: flex;
  flex-direction: row;
  gap: 32px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
footer strong {
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1.14rem;
  font-weight: 700;
}
footer nav {
  display: flex;
  gap: 16px;
}
footer nav a {
  color: #224160;
  font-size: 1.02rem;
  border-radius: 4px;
  padding: 4px 7px;
  transition: background .15s, color .15s;
}
footer nav a:hover, footer nav a:focus {
  background: #FFD600;
  color: #224160;
}

/* BUTTON & INTERACTIVES */
.btn-primary,
button[type="submit"],
input[type="submit"] {
  display: inline-block;
  font-family: 'Montserrat', Georgia, serif;
  background: #FFD600;
  color: #224160;
  font-weight: bold;
  font-size: 1.1rem;
  border: none;
  border-radius: 7px;
  padding: 9px 22px;
  cursor: pointer;
  transition: background .18s, color .18s, box-shadow 0.22s;
  box-shadow: 0 2px 8px rgba(34,65,96,0.09);
  text-align: center;
  text-decoration: none;
}
.btn-primary:hover, .btn-primary:focus,
button[type="submit"]:hover, input[type="submit"]:hover {
  background: #FFF38A;
  color: #224160;
  box-shadow: 0 4px 15px rgba(34,65,96,0.13);
}

/* FORMS */
input, textarea, select {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  background: #fff;
  border: 1px solid #D7D2CA;
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 12px;
  color: #224160;
  transition: border .14s;
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  border-color: #224160;
  outline: 2px solid #FFD600;
}

input[type="checkbox"] {
  accent-color: #224160;
  margin-right: 6px;
}

/* Utility classes */
.text-center {
  text-align: center;
}
.mb-32 {
  margin-bottom: 32px;
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: #224160;
  color: #fff;
  box-shadow: 0 -2px 14px rgba(34,65,96,0.13);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 22px 20px;
  gap: 28px;
  transition: transform 0.32s;
  transform: translateY(0);
}
.cookie-banner.hidden {
  transform: translateY(120%);
  pointer-events: none;
}
.cookie-banner p {
  margin: 0;
  color: #fff;
  font-size: 1.07rem;
  flex: 1;
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 12px;
  align-items: center;
}
.cookie-banner button,
.cookie-banner .banner-btn {
  border: none;
  font-family: 'Montserrat', serif;
  padding: 8px 18px;
  border-radius: 7px;
  font-size: 1.03rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s, color 0.16s;
}
.cookie-banner .accept {
  background: #FFD600;
  color: #224160;
}
.cookie-banner .accept:hover { background: #FFF38A; }
.cookie-banner .reject {
  background: #EFEFE9;
  color: #224160;
}
.cookie-banner .reject:hover { background: #ccc; }
.cookie-banner .settings {
  background: none;
  border: 1.5px solid #FFD600;
  color: #FFD600;
}
.cookie-banner .settings:hover { background: #FFD600; color: #224160; }

/* COOKIE CONSENT MODAL */
#cookie-modal {
  display: none;
  position: fixed;
  z-index: 220;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.30);
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-width: 100vw;
  transition: opacity 0.24s;
}
#cookie-modal.active {
  display: flex;
}
.cookie-modal-inner {
  background: #fff;
  border-radius: 14px;
  padding: 36px 24px 24px 24px;
  max-width: 410px;
  width: 92vw;
  box-shadow: 0 2px 24px rgba(34,65,96,0.16);
  color: #224160;
  text-align: left;
  animation: fadeInModal 0.31s cubic-bezier(.5,.1,.4,1);
}
@keyframes fadeInModal {
  from { opacity: 0; transform: translateY(25px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
.cookie-modal-inner h3 {
  font-size: 1.33rem;
  margin-bottom: 18px;
}
.cookie-modal-inner .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 18px;
}
.cookie-modal-inner label {
  display: flex;
  align-items: center;
  font-size: 1.01rem;
  gap: 10px;
}
.cookie-modal-inner .category-essential {
  color: #aaa;
  font-size: 0.96rem;
  font-style: italic;
}
.cookie-modal-inner .cookie-modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}
.cookie-modal-inner button {
  border: none;
  font-family: 'Montserrat', serif;
  padding: 7px 16px;
  border-radius: 6px;
  font-size: 1.01rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.14s, color 0.16s;
}
.cookie-modal-inner .accept {
  background: #FFD600;
  color: #224160;
}
.cookie-modal-inner .reject {
  background: #EFEFE9;
  color: #224160;
}
.cookie-modal-inner .close {
  background: none;
  border: 1.4px solid #224160;
  color: #224160;
}
.cookie-modal-inner .accept:hover { background: #FFF38A; }
.cookie-modal-inner .reject:hover { background: #e1e1e1; }
.cookie-modal-inner .close:hover {
  background: #224160; color: #FFD600;
}

/* MICRO-INTERACTIONS & TRANSITIONS */
.section, .hero, .card, .card-container > .card, .feature-grid > div,
.btn-primary, .testimonial-card, .cookie-banner, .cookie-modal-inner {
  transition: box-shadow 0.21s, transform 0.21s;
}
.card:hover,
.card:focus {
  box-shadow: 0 6px 18px rgba(34,65,96,0.13);
  transform: scale(1.015);
}

/* RESPONSIVENESS – MOBILE FIRST */
@media (max-width: 1024px) {
  .container {
    max-width: 97vw;
  }
  .content-wrapper {
    gap: 12px;
  }
  .feature-grid, .card-container {
    gap: 17px;
  }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    gap: 8px;
    padding: 12px 10px 12px 10px;
  }
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .hero, .section, main > section, .contact-cta {
    padding: 32px 9px 28px 9px;
    margin-bottom: 37px;
    border-radius: 14px;
  }
  .feature-grid {
    flex-direction: column;
    gap: 16px;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 12px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 10px;
    padding: 15px;
  }
  footer .content-wrapper {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
  .text-image-section {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}

@media (max-width: 580px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.36rem; }
  .cookie-banner {
    flex-direction: column;
    gap: 14px;
    font-size: 1.01rem;
    padding: 18px 6px;
    text-align: left;
    align-items: flex-start;
  }
  .cookie-banner .cookie-btns {
    gap: 9px;
    flex-direction: row;
    width: 100%;
  }
  .cookie-modal-inner {
    padding: 19px 7px;
  }
}

/* ELEGANT CLASSIC PROPORTIONS & CONTRAST */
.section, .card, .feature-grid > div {
  border: 1px solid #EDE7DA;
}

/* SUBTLE HOVER STATES */
a, .btn-primary, .card, .feature-grid > div, .testimonial-card {
  transition: box-shadow 0.18s, background 0.14s, color 0.14s, transform 0.13s;
}

/* Z-INDEX STACKING FOR OVERLAYS */
header { z-index: 40; }
.mobile-menu { z-index: 100; }
.cookie-banner { z-index: 200; }
#cookie-modal { z-index: 220; }

/* Prevent text overlapping */
.card, .card-container > .card, .feature-grid > div, .testimonial-card, .section, .hero, .contact-cta {
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Extra accessibility: focus styles */
a:focus-visible, button:focus-visible {
  outline: 2.5px solid #FFD600;
  outline-offset: 2px;
}

/* --- CLASSIC COLORS --- */
:root {
  --primary: #224160;
  --secondary: #FFD600;
  --accent: #F7F7F7;
  --shadow: rgba(34,65,96,0.08);
}

/* VISUAL HIERARCHY & WHITE SPACE */
main > section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container, .content-grid, .feature-grid {
  gap: 24px;
}
.card {
  margin-bottom: 20px;
}
.testimonial-card {
  margin-bottom: 20px;
}

/* Hide elements visually (utility) */
.hidden { display: none !important; }

/* End of CSS */
