:root {
  --brown-bg: #c89863;
  --brown-line: #7b4a28;
  --brown-light: #e5c39a;
  --accent: #f5e4d2;
  --bg-card: #fff6ec;
  --text: #33241a;
  --muted: #7a5e49;
  --border: #e1d2c4;
  --radius: 10px;
  --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.08);
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-sans);
  background: #c89863;
  color: var(--text);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  cursor: default;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 248, 241, 0.96);
  border-bottom: 1px solid rgba(214, 188, 160, 0.8);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  gap: 1rem;
}

body:not(.is-start) .header-content {
  padding: 0.7rem 0;
}

.is-start .header-content {
  justify-content: flex-end;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.is-start .logo-block {
  display: none;
}

.logo-icon {
  width: 80px;
  height: auto;
  object-fit: contain;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.logo-icon:hover {
  transform: scale(1.2);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--brown-line);
}

.logo-subtitle {
  font-size: 0.8rem;
  color: var(--muted);
}

.main-nav {
  display: flex;
  gap: 0.35rem;
  margin-left: auto;
}

.nav-link {
  border: none;
  background: transparent;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--muted);
  cursor: pointer;
}

.nav-link:hover {
  background: rgba(224, 189, 150, 0.45);
}

.nav-link.active {
  background: var(--brown-line);
  color: #fff;
  box-shadow: 0 8px 18px rgba(94, 54, 28, 0.45);
}

main {
  flex: 1;
  padding: 2rem 0 3rem;
}

/* Hero */

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.is-start #tab-start .hero-text {
  text-align: center;
}

#tab-start .hero-text h1 {
  font-size: 3rem;
  line-height: 1.15;
}

.hero-mammut {
  width: 100%;
  max-width: 540px;
  height: auto;
  filter: none;
  border-radius: 0;
  background: transparent;
}

.is-start .hero-visual {
  margin-top: 24px;
}

/* Cards */

.cards-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(222, 197, 170, 0.9);
}

.is-start #tab-start {
  padding-bottom: 2rem;
}

/* Kontakt */

#tab-kontakt {
  padding-bottom: 2rem;
}

#tab-kontakt .contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

#tab-kontakt > .lead {
  margin-top: 0.2rem;
  margin-bottom: 0.7rem;
}

.contact-card-form {
  height: 100%;
}

.contact-right-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}

.contact-card-small {
  flex: 1;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.contact-right-column .contact-card-small:first-child {
  flex: 0.7;
}

.contact-right-column .contact-card-small:last-child {
  flex: 1.3;
}

/* Öffnungszeiten */

.opening-hours {
  width: 100%;
  max-width: 400px;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 0 auto;
}

.opening-hours th,
.opening-hours td {
  padding: 0.4rem 0.35rem;
  border: none;
}

.opening-hours th {
  text-align: right;
  font-weight: 600;
  color: var(--muted);
  width: 35.5%;
  padding-right: 1.2rem;
  border-right: 1px solid rgba(123, 74, 40, 0.4);
}

.opening-hours td {
  padding-left: 0.5rem;
}

.opening-hours tr:nth-child(odd) {
  background: #f9f1ea;
}

.opening-hours tr:nth-child(even) {
  background: #fdf7f1;
}

.opening-time {
  display: inline-block;
  margin-left: 1.1rem;
}

/* Adresse & Karte */

.address-grid {
  display: flex;
  gap: 0.3rem;
  align-items: flex-start;
}

.address-text {
  flex: 0 0 150px;
  max-width: 150px;
}

.map-wrapper {
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
  margin-left: 0;
}

#tab-start .card .map-wrapper {
  border-radius: 8px;
  overflow: hidden;
}

.map-wrapper iframe {
  width: 100%;
  height: 200px;
  border: none;
  display: block;
}

.map-fallback:not([hidden]) {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.7rem;
  min-height: 200px;
  padding: 1rem 1.1rem;
  background: #f9f1ea;
  color: var(--muted);
}

.map-fallback p {
  margin: 0;
}

.map-fallback a {
  color: var(--brown-line);
  font-weight: 600;
  width: fit-content;
}

.map-fallback .btn-primary {
  display: inline-block;
  width: auto;
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
  background: #7b4a28;
  color: #ffffff;
  border: none;
  border-radius: 999px;
  cursor: pointer;
}

/* Kontaktformular */

.contact-form {
  display: grid;
  gap: 0.8rem;
  width: 100%;
  max-width: 100%;
}

.contact-form input,
.contact-form textarea {
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 0.55rem 0.65rem;
  background: #fbf1e3;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: none;
  border-color: var(--brown-line);
  box-shadow: 0 0 0 3px rgba(123, 74, 40, 0.35);
  background: #fff8f1;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.form-status {
  display: none;
}

.form-status.is-visible {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0 0 1.25rem;
  padding: 1rem 1.2rem;
  border-radius: 10px;
  font-size: 1.05rem;
  line-height: 1.4;
}

.form-status p {
  margin: 0;
  text-align: left;
}

.form-status p + p {
  margin-top: 0.5rem;
}

.form-status.is-success {
  background: #d7e6cc;
  color: #1f3d18;
  border: 2px solid #4d7a3e;
}

.form-status.is-error {
  background: #f3d0c6;
  color: #5c2016;
  border: 2px solid #a04532;
}

.form-status a {
  color: inherit;
}

#tab-kontakt .contact-form input {
  height: auto;
  min-height: 0;
}

#tab-kontakt .contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  min-height: 120px;
  text-align: justify;
}

h1 {
  font-size: 2rem;
  margin: 0 0 0.75rem;
}

section#tab-kontakt > h1 {
  margin-bottom: 0.25rem;
}

.contact-direct-lines {
  margin: 0;
}

.contact-label {
  display: inline-block;
  width: 70px;
  font-weight: 500;
}

.contact-value a {
  text-decoration: none;
  color: var(--brown-line);
}

.contact-value a:hover {
  text-decoration: underline;
}

#tab-kontakt p {
  text-align: justify;
}

#tab-start .address-text p {
  text-align: justify;
}

#tab-impressum p,
#tab-impressum .legal-block,
#tab-datenschutz p,
#tab-datenschutz .legal-block {
  text-align: justify;
}

.legal-block h3 {
  margin: 1.4rem 0 0.4rem;
  color: var(--brown-line);
}

.legal-block a {
  color: var(--brown-line);
}

#tab-kontakt .contact-form .btn-primary {
  display: inline-block;
  width: auto;
  padding: 0.75rem 1.3rem;
  font-size: 0.95rem;
  background: #7b4a28;
  color: #ffffff;
  border: none;
  border-radius: 999px;
  box-shadow: none;
  cursor: pointer;
}

#tab-kontakt .contact-form .btn-primary:hover {
  background: #7b4a28;
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(214, 188, 160, 0.8);
  background: #fff8f1;
  flex-shrink: 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted);
}

a,
.nav-link,
.logo-icon {
  cursor: pointer;
}

input,
textarea {
  cursor: default;
}

input:focus,
textarea:focus {
  cursor: text;
}

.tab-section {
  display: none;
}

.tab-section.active {
  display: block;
}

/* Cookie-Hinweis */

.cookie-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-modal {
  background: #ffffff;
  color: #222;
  width: 480px;
  max-width: 90vw;
  padding: 24px 28px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  font-size: 16px;
}

.cookie-modal h2 {
  font-size: 20px;
}

.cookie-modal p {
  margin: 0 0 0.5rem 0;
  text-align: justify;
}

.cookie-modal button {
  font-size: 16px;
}

.cookie-modal-buttons {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.cookie-modal .btn-primary {
  display: inline-block;
  width: auto;
  padding: 10px 21px;
  font-size: 15px;
  background: #7b4a28;
  color: #ffffff;
  border: none;
  border-radius: 999px;
  box-shadow: none;
  cursor: pointer;
}

/* Größere Bildschirme */

@media (min-width: 1200px) {
  html {
    font-size: 120%;
  }

  .container {
    max-width: 1200px;
  }

  .contact-card-form {
    flex: 1.1;
    min-height: 100%;
  }

  .contact-right-column {
    min-height: 100%;
    display: flex;
    flex-direction: column;
  }

  .contact-card-small {
    flex: 1 1 0;
  }

  .address-text {
    flex: 0 0 165px;
    max-width: 165px;
  }

  .map-wrapper iframe {
    height: 260px;
  }
}

@media (min-width: 1400px) {
  html {
    font-size: 130%;
  }

  .container {
    max-width: 1400px;
  }

  .opening-hours {
    max-width: 480px;
  }

  .address-text {
    flex: 0 0 180px;
    max-width: 180px;
  }

  .map-wrapper iframe {
    height: 300px;
  }
}

@media (min-width: 1800px) {
  html {
    font-size: 140%;
  }

  .container {
    max-width: 1600px;
  }

  .opening-hours {
    max-width: 550px;
  }

  .address-text {
    flex: 0 0 195px;
    max-width: 195px;
  }

  .map-wrapper iframe {
    height: 340px;
  }
}

/* Schmale Bildschirme */

@media (max-width: 932px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }

  #tab-start .card {
    margin-bottom: 0.8rem;
  }

  .map-wrapper iframe {
    height: 200px;
  }
}

@media (max-width: 850px) {
  .header-content {
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .main-nav {
    justify-content: center;
    flex-wrap: wrap;
  }

  .nav-link {
    font-size: 0.85rem;
    padding: 0.35rem 0.7rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    row-gap: 1.2rem;
  }

  .hero-visual {
    justify-content: center;
  }

  h1 {
    font-size: 1.6rem;
  }

  .lead {
    font-size: 0.95rem;
  }

  #tab-start .hero-text h1 {
    font-size: 2.3rem;
    line-height: 1.1;
  }

  .address-grid {
    flex-direction: column;
    gap: 0.3rem;
  }

  .address-text {
    flex: 0 0 auto;
    max-width: 100%;
    width: 100%;
    margin-bottom: 0;
  }

  .map-wrapper {
    flex: 0 0 auto;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 0;
  }

  #tab-kontakt .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-right-column {
    flex-direction: column;
    width: 100%;
  }

  .contact-card-form {
    width: 100%;
  }
}
