/*====================
= 1. Globale Styles  =
====================*/

/* Basis-Root-Font-Size für 1920px */
html {
  font-size: 16px; /* 1rem = 16px (Basis für 1920px) */
}

body.startseite,
body[class*="startseite"] {
  overflow: hidden;
  width: 120rem; /* 1920px / 16 = 120rem */
  height: 67.5rem; /* 1080px / 16 = 67.5rem */
  transform-origin: top left;
  max-height: 100vh;
  max-width: 100vw;
}

div.startseite-hintergrund {
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  background-position: center;
  background-origin: center;
  background-size: cover;
}

body,
h2,
.regular {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300;
}

h1,
h3,
.bold {
  font-weight: 600;
}

.primecolor {
  color: #D0404D;
}

.accentcolor {
  color: #cf404d;
}

.softcolor {
  color: #D0404D;
  opacity: 0.5;
}

.gray-background {
  background-color: #e6e6e6 !important;
}

a,
a:hover,
a:focus,
a:active {
  cursor: pointer !important;
}

/* Bezugspunkt für absolute Stoerer */
.attributes {
  position: relative;
}

.stoerer {
  position: relative;
  top: 0;
  right: 5rem; /* 80px */
  z-index: 100;
  filter: drop-shadow(0.3125rem 0.3125rem 0.625rem rgba(0,0,0,0.5)); /* 5px 5px 10px */
  transform: scale(1);
}

/*====================
= 2. Header         =
====================*/

.kucook-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0 4rem 0;
  min-height: 80px;
}

.kucook-header img {
  display: block;
  height: 7.5rem;
  max-height: 7.5rem; /* 120px */
  width: auto;
  z-index: 21;
  transition: max-height 0.3s ease;
}

.kucook-header .header-link {
  position: absolute;
  top: 8rem;
  transform: translateY(-50%);
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  font-size: 1.5rem;
  z-index: 21;
}

.kucook-header .header-link.petrol {
  color: #557277;
}

.kucook-header .header-link:hover {
  color: #CF404D;
  text-decoration: underline;
}

.kucook-header.shrink {
  padding: 1rem 0;
  min-height: 6.875rem;
}

.kucook-header.shrink .header-link {
  transition: 0.3s ease;
}

@media only screen and (max-width: 1040px) {
  .kucook-header .header-link {
    position: fixed;
    top: 100px;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0 4rem 0;
    min-height: 5rem;
  }
  
  .kucook-header.shrink .header-link {
    top: 2.125rem;
  }
}

/*====================
= 3. Hero Section   =
====================*/

.hero-claim {
  font-size: 4rem;
  text-align: center;
  line-height: 1.2;
  color: white;
  margin-top: 40vh;
}

.hero-claim p {
  margin: 0;
}

.hero-claim .part {
  display: block; /* jede Gruppe auf eigener Zeile (Mobile) */
}

/* Hero Buttons */
.hero-buttons {
  display: flex;
  justify-content: center;
}

.hero-buttons a {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-weight: 300;
  text-decoration: none;
  width: 33vw;
  height: 3.125rem;
  font-size: 1rem;
}

.hero-buttons .btn-restaurant {
  background: #557277;
  color: #fff;
  min-width: 18.125rem;
}

.hero-buttons .btn-catering {
  background: #fff;
  color: #557277;
  min-width: 18.125rem;
}

.hero-buttons a h2 {
  margin-top: 2.25rem;
}

@media only screen and (max-width: 767px) {
  .hero-buttons a h2 {
    margin-top: 1.1875rem;
  }
  
  .hero-buttons .btn-restaurant,
  .hero-buttons .btn-catering {
    max-width: 10rem;
    min-width: 10rem;
  }
}

@media only screen and (max-width: 400px) {
  .hero-buttons a h2 {
    margin-top: 1rem;
  }
}

/* Links */
.bold-red-fancy-links {
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  font-size: 1.5rem;
  color: #CF404D;
}

.bold-red-fancy-links:hover {
  color: #CF404D;
  text-decoration: underline;
}

/*====================
= 4. Footer         =
====================*/

.kucook-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  color: #fff;
  font-size: 0.9rem;
  background: rgba(0,0,0,0);
  z-index: 1000;
  box-sizing: border-box;
}

.kucook-footer a {
  color: #fff;
  text-decoration: none;
  margin: 0 0.3rem;
}

.kucook-footer a:hover {
  text-decoration: underline;
}

.kucook-footer .btn-phone {
  display: inline-block;
  padding: 1rem;
  background: #CF404D;
  border-radius: 0.25rem;
  font-weight: bold;
}

.kucook-footer .btn-phone:hover {
  transform: scale(1.2);
  transition-duration: 0.5s;
}

.mobile-device .btn-phone {
  display: inline-block;
  padding: 1rem;
  background: #CF404D;
  border-radius: 0.25rem;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  margin: 0.9375rem 0;
}

/* Mobile Footer */
@media (max-width: 768px) {
  .kucook-footer {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  /* Reihenfolge umkehren: btn oben, Adresse mittig, Impressum unten */
  .kucook-footer .footer-right { order: 0; }
  .kucook-footer .footer-center { order: 1; }
  .kucook-footer .footer-left { order: 2; }

  .kucook-footer .btn-phone {
    margin: auto 0 0.9375rem 0;
    display: none;
  }
}

/* Mobile Phone Button */
.btn-phone-mobile {
  display: inline-block;
  padding: 1rem;
  background: #CF404D;
  border-radius: 0.25rem;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  text-align: center;
  transition: transform 0.5s;
  z-index: 1000;
  margin-top: 1rem;
}

.btn-phone-mobile:hover {
  transform: scale(1.2);
}

/*====================
= 5. Page Switch Btn =
====================*/

.page-switch-btn {
  position: fixed;
  transform: translateY(-50%) rotate(90deg);
  padding: 1rem 2rem;
  font-weight: bold;
  border-radius: 0.25rem;
  text-decoration: none;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: center top;
}

a.page-switch-btn {
  text-transform: uppercase;
  font-weight: 300;
}

.page-switch-btn.right {
  right: -4.5625rem;
  top: 75vh;
  background: #CF404D;
  color: white;
}

.page-switch-btn.left {
  left: -5.25rem;
  top: 75vh;
  transform: translateY(-50%) rotate(-90deg);
  background: #CF404D;
  color: white;
}

/*====================
= 6. Tile Layout    =
====================*/

.tile-row {
  display: flex;
  flex-wrap: wrap;
}

.square-img,
.square-tile {
  flex: 1 1 50%; /* 2 Spalten Desktop */
}

@media (max-width: 767px) {
  .tile-row {
    display: flex;
    flex-direction: column; /* 1 Spalte */
  }

  /* Text immer vor Bild */
  .tile-row .square-tile { order: 1; }
  .tile-row .square-img { order: 2; }
}

/*====================
= 7. News Blog      =
====================*/

.news-headline {
  padding: calc(1vw + 0.9375rem);
  padding-bottom: 0;
}

.news-subheadline {
  padding-left: calc(1vw - 0.125rem);
}

.mod_newslist.block {
  display: flex;
  gap: 1.875rem;
}

.news-item {
  border-radius: 0.375rem;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-title,
.h2-rot p {
  text-transform: uppercase;
  color: #CF404D;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.news-date {
  font-size: 0.9rem;
  color: #557277;
  opacity: 0.9;
  margin-bottom: 1rem;
}

.news-body p,
.news-text p {
  font-weight: 300;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #000;
  margin-bottom: 0.75rem;
}

.news-item.square-tile {
  aspect-ratio: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: calc(1vw + 0.9375rem);
}

@media only screen and (max-width: 1176px) {
  .news-item {
    padding: 1.5rem;
  }
  
  .news-body p {
    font-size: 0.95rem;
    line-height: 1.4;
  }
}

@media only screen and (max-width: 787px) {
  .mod_newslist.block {
    gap: 2rem;
    padding: 0 1rem;
  }
  
  .news-item {
    padding: 1.2rem;
  }
  
  .news-body p {
    font-size: 0.9rem;
  }
}

/*====================
= 8. Catering       =
====================*/

.catering-highlights strong {
  font-size: 0.9em;
}

.catering-highlights span.h2-rot {
  font-size: inherit;
}

.btn-red-white a,
.btn-red-white p {
  display: inline-block !important;
  font-size: inherit !important;
  line-height: inherit !important;
}

/*====================
= 9. Media Queries  =
====================*/

/* iPhone SE & Kleinstgeräte */
@media screen and (max-width: 399px) and (max-height: 667px) {
  .stoerer { 
    transform: scale(0.5); 
  }
  
  .hero-claim { 
    font-size: 3.5rem; 
    line-height: 1; 
    margin-top: 35vh; 
  }
  
  .hero-buttons a { 
    font-size: 10px; 
    margin-top: 10px; 
  }
  
  .kucook-footer .btn-phone { 
    margin-bottom: 0.9375rem; 
  }
}

/* Tablet */
@media (min-width: 768px) {
  .hero-claim { 
    font-size: 5rem; 
    margin-top: 35vh; 
  }
  
  .hero-claim .part { 
    display: block; 
  }
  
  .hero-buttons a { 
    width: 25vw; 
    height: 6.25rem; 
    font-size: 1.5rem; 
  }
  
  .stoerer { 
    transform: scale(0.8); 
    top: -15vh; 
    right: 15vw; 
  }
  
  .footer-right.mobile-device {
    display: none;
  }
}

/* Desktop */
@media (min-width: 1394px) {
  .hero-claim { 
    font-size: 8rem; 
    margin-top: 40vh; 
  }
  
  .hero-claim .part { 
    display: inline; 
  }
  
  .hero-buttons a { 
    width: 20rem; 
    height: 6.25rem; 
    font-size: 1.5rem; 
  }
  
  .stoerer { 
    transform: scale(1); 
    top: -20vh; 
    right: 20vw; 
  }
  
  div.footer-right.mobile-device {
    display: none;
  }
}

/*====================
= 10. Hochskalierung =
====================*/

/* Skalierung mit Transform für verschiedene Auflösungen */
@media screen and (min-width: 2560px) {
  html { font-size: 21.33px; } /* 16 * 1.3333 */
  .stoerer {
    transform: scale(2) !important;
  }
}

@media screen and (min-width: 3008px) {
  html { font-size: 25.07px; } /* 16 * 1.5667 */
  .stoerer {
    transform: scale(2.2) !important;
  }
}

@media screen and (min-width: 3360px) {
  html { font-size: 28px; } /* 16 * 1.75 */
  .stoerer {
    transform: scale(2.4) !important;
  }
}

@media screen and (min-width: 3840px) {
  html { font-size: 32px; } /* 16 * 2 */
  .stoerer {
    transform: scale(2.6) !important;
  }
}

/* STOERER OVERRIDE - muss ganz am Ende stehen für Hero Section */
.stoerer {
  position: absolute;
  top: -18.5vh;
  right: 20vw;
  z-index: 100;
  filter: drop-shadow(5px 5px 10px rgba(0,0,0,0.5));

}
/* Font-Size flüssig skalieren */
html {
  font-size: clamp(16px, 0.7vw, 32px); /* Minimum 16px, Maximum 32px, wächst mit der Bildschirmbreite */
}

/* Stoerer flüssig skalieren */
.stoerer {
  width: clamp(160px, 5vw, 420px);  /* Minimum 80px, Maximum 420px, wächst mit Bildschirmbreite */
  height: auto;
  filter: drop-shadow(5px 5px 10px rgba(0,0,0,0.5));
  transform: scale(1); /* Optional: für kleine zusätzliche Anpassungen */
  transition: all 0.3s ease;
}
