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

:root {
  --green: #5a8c63;
  --dark-green: #305739;
  --peach: #f16854;
  --rose: #fd8277;
  --light-brown: #b88b6b;
  --light-orange: #fbd9be;
  --light-red: #f3ada2;
  --orange: #f9be8f;
  --blue: #6a8fa5;
  --text-light: #fff7ec;
  --font-red: #f16a58;
  --bg-red:#fdf0e5;
  --main-font: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sub-font: 'Playfair Display', Georgia, 'Times New Roman', serif;
  #--sub-font: 'Nunito', sans-serif;
  #--sub-font: "Google Sans Flex", sans-serif;
}


body {
  line-height: 1.6;
  color: #333;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  margin: 0;
  #font-family: var(--main-font);
  font-family: var(--sub-font);
}

/* Chrome, Edge, Safari */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

.teaser{
  background-color:var(--bg-red);
  padding: 20px 0;          /* vertikal ja, horizontal macht der container */
  margin-top: 0;
  color: #f16a58;
  text-align: center;
  font-size: 2em;
  line-height: 1em;
  font-family: var(--main-font);
}

/* Logo im Teaser */
.teaser .teaser-logo{
  display: block;
  margin: 0 auto 15px;
}

/* der kleine Textblock */
.teaser .teaser-sub{
  font-size: 0.7em;
  max-width: 80%;
  margin: 20px auto 0;
  line-height: 1.2em;
  text-align: left;
  font-family: var(--sub-font);
}

.box {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.2rem;
  color: var(--font-red);
  text-align: left;
}

.small-input {
  width: 80px;
}

.medium-input {
  width: 100px;
}

.city-input {
  width: 230px;
}

.large-input {
  width: 250px;
}

input, textarea, button, select {
  font: inherit;
  #font-family: "Arial Narrow", sans-serif;
  font-size: 1.5rem;
  color: inherit;
  border: 2px solid var(--peach);
  border-radius: 10px;
  padding: 10px;
  margin: 0;
  width: auto;
  vertical-align: middle;
}

select {
  background: #fff;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

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

.two-col {
  display: grid;
  gap: 1.5rem;

  /* 2 Spalten wenn möglich, sonst bricht es um */
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}









/* Header */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 20;

}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.logo-img {
  margin-left:10px;
  margin-right:7px;
  margin-top:10px;
}

.logo_text {
  font-weight: 800;
  font-size:2.0em;
  color:#f16854;
  margin-top:-5px;
  font-family: var(--main-font);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 1.2rem;
}

.logo-icon {
  font-size: 1.4rem;
}

.logo-text span:nth-child(1) {
  color: var(--green);
}

/* Navigation */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
  margin-right:20px;
  margin-left:10px;
  font-weight: 350;
}

.main-nav a {
  padding: 0.25rem 0;
  position: relative;
  color: var(--peach);
  font-size: 1.2em;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.1rem;
  width: 0;
  height: 2px;
  background: var(--peach);
  transition: width 0.2s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.5rem;
  padding-left: 1rem;
  padding-right: 1rem;
  border-radius: 10px;
  font-size: 1.5rem;
  font-weight: 400;
  font-family: var(--sub-font);
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--peach);
  color: #fff;
}

.btn-primary:hover {
  background: orange;
}

.btn-secondary {
  background: #ffffff;
  color: var(--dark-green);
}

.btn-secondary:hover {
  background: #f7f3ec;
}

.btn-light {
  background: var(--peach);
  color: #fff;
  font-size: 0.85rem;
  padding: 0.6rem 1.2rem;
}

.btn-light:hover {
  background: orange;
}

/* HERO */
.hero {
  position: relative;
  min-height: 65vh;
  color: var(--text-light);
  display: flex;
  align-items: center;
  background-image: url("/images/header_bg.jpg");
  background-size: cover;
  background-position: center;
}

.hero_content_right {
  position: relative;
  min-height: 65vh;
  color: var(--text-light);
  display: flex;
  align-items: center;
  background-image: url("/images/header_demenz1.jpg");
  background-size: cover;
  background-position: center;
}



.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.65), rgba(0,0,0,0.3), rgba(0,0,0,0.15));
}

.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 1.5rem 5rem;
}

.hero-content-rightbox {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  padding: 4rem 1.5rem 5rem;
  line-height: 2.8em;
}


.hero-text {
  max-width: 480px;
  #font-size: 1.3rem;
}

.hero h1 {
  margin: 0 0 1.2rem;
  font-size: 2.8rem;
  line-height: 1.1;
}

.hero_content_right h1 {
  margin: 0 0 1.2rem;
  font-size: 2rem;
  line-height: 1.1;
}

.hero-content-rightbox h1 {
  margin: 0 0 1.2rem;
  font-size: 2.5rem;
  line-height: 1.1;
  padding-top:10px;
  padding-bottom:20px;
}

.hero-content-rightbox p {
  margin: 0 0 1.8rem;
  font-size: 1.2rem;
  line-height: 1.5rem;
}

.hero p {
  margin: 0 0 1.8rem;
  font-size: 1.2rem;
  line-height: 1.5rem;
}

.hero_content_right p {
  margin: 0 0 1.8rem;
  font-size: 1.2rem;
  line-height: 1.5rem;
}

/* CLAIM */
.claim {
  background: #f6efe7;
  text-align: center;
  #padding: 0 0 2.5rem;
}

.claim p {
  margin: 0;
  font-weight: 100;
  font-size: 1.2rem;
}

/* 3 Feature-Karten */
.feature-section {
  padding: 2.5rem 0 3.5rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.fact-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  text-align: center;
  color:dimgrey;
}

.fact-number {
  font-size: 5rem;
  color: var(--peach);
  margin-bottom: -1rem;
  font-family: var(--main-font);
}

.feature-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
  color: #ffffff;
}

.card-image img {
  width: 100%;
  height: 100%;
  max-height: 340px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.feature-card:hover .card-image img {
  transform: scale(1.04);
}

.card-content {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.2rem 1.5rem 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.card-content h3 {
  margin: 0;
  font-size: 1.3rem;
}

.info-list {
  margin-left: 15px;
  padding-left: 0;
  font-size: 1.2rem;
  margin-top:-10px;
}

.info-list li {
  list-style: none;
  position: relative;
  padding-left: 34px;
}

.info-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;

  width: 26px;
  height: 20px;
  background-image: url("/images/logo.png");
  background-size: contain;
  background-repeat: no-repeat;
}

/* Info-Section */
.info-section {
  background: var(--light-orange);
  color: var(--font-red);
  padding: 3.5rem 0 4rem;
}

.info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.info-image {
  height:400px;
  background-image: url("/images/senior_caller1.jpg");
  border-radius: 14px;
  background-size: cover;
}


.info-text h2 {
  margin: 0 0 1rem;
  font-size: 2rem;
  font-family: var(--main-font);
}

.info-text p {
  margin: 0 0 2rem;
  font-size: 1.2rem;
  line-height: 1.5rem;
}

/* Kleine Icon-Karten */
.icon-cards {
  padding: 3rem 0 4rem;
  padding-bottom:10px;
  font-family: var(--main-font);
}

.icon-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.icon-card {
  padding-left: 0.5rem;
  padding-top:0.5rem;
  padding-bottom: 1.8rem;
  padding-right: 0.5rem;
  border-radius: 12px;
  color: #fff;
  display: flex;
  flex-direction: column;
  #gap: 0.6rem;
  line-height: 1.2;
  font-size: 1.9rem;
  font-weight: 600;
}


.icon-card-orange { background: var(--orange); }
.icon-card-lightred  { background: var(--light-red);  }
.icon-card-lightorange { background: var(--light-orange); color:var(--font-red);}
.icon-card-rose  { background: var(--rose); }


.icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.icon-card h4 {
  margin: 0;
  font-size: 0.98rem;
}

/* Footer */
.site-footer {
  background: #fbd9be; color:#f16a58;
  padding: 2rem 0 2.5rem;
  font-size: 1rem;
}

.footer-inner {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

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

.caller-warning {
  padding-top:20px;
  padding-bottom:20px;

}


.showMe{
  display:block;
}

.showMeNot{
  display:none;
}

/* ============================= */
/* Modal (ergänzend)             */
/* ============================= */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 9999;
}

/* Öffnen über :target */
.modal-overlay:target {
  opacity: 1;
  pointer-events: auto;
}

/* Modal Box */
.modal-box {
  background: #fff7ec; /* passt zu deinem Theme */
  color: var(--font-red);
  width: 90%;
  max-width: 520px;
  padding: 2rem;
  border-radius: 14px;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  animation: modalFadeIn 0.25s ease;
}

/* Close */
.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 2rem;
  font-weight: 600;
  color: var(--font-red);
  background: transparent;
  border: none;
}

.modal-close:hover {
  opacity: 0.7;
}

/* Content */
.modal-box h2 {
  margin-top: 0;
  font-size: 2rem;
  font-family: var(--main-font);
}

.modal-box p {
  font-size: 1.2rem;
  line-height: 1.5;
}

/* Actions */
.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
}

/* Animation */
@keyframes modalFadeIn {
  from {
    transform: scale(0.96);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Mobile Optimierung */
@media (max-width: 576px) {
  .modal-actions {
    flex-direction: column;
  }

  .modal-box {
    padding: 1.5rem;
  }
}





/* ---------------------------------------- */
/* Breakpoints */
/* ---------------------------------------- */

/* bis 992px */
@media (max-width: 992px) {
  .hero {
    min-height: 60vh;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-content-right h1 {
    font-size: 2rem;
  }

  .hero-content-rightbox h1 {
    font-size: 2rem;
  }

  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .info-image {
    height:300px;
    background-image: url("/images/senior_caller1.jpg");
    border-radius: 14px;
    background-size: cover;
    background-position: center -120px;
  }

  .icon-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


@media (max-width: 800px) {
  .hero {
    background-image: url("/images/header_bg.jpg");
    background-size: cover;
    background-position: right;
  }

  .hero-content-right {
    background-image: url("/images/header_bg.jpg");
    background-size: cover;
    background-position: right;
  }

  .hero-text{
    background-color: rgba(0,0,0,0.3);
    padding: 1rem;
    border-radius: 14px;
    margin-top:200px;
  }

  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.1);
  }

}


@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .main-nav ul {
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
  }

  .hero-content {
    padding-top: 3.2rem;
    padding-bottom: 3.5rem;
  }

  .hero-text {
    max-width: 100%;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .icon-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* bis 576px */
@media (max-width: 734px) {
  .info-image {
    height:300px;
    background-image: url("/images/senior_caller1.jpg");
    border-radius: 14px;
    background-size: cover;
    background-position: center -90px;
  }

}



@media (max-width: 576px) {

  .info-image {
    height:250px;
    background-image: url("/images/senior_caller1.jpg");
    border-radius: 10px;
    background-size: cover;
    background-position: center -30px;
    background-repeat: no-repeat;
  }

  .hero {
    background-image: url("/images/header_bg.jpg");
    background-size: cover;
    background-position: right;
  }



  .hero-text{
    background-color: rgba(0,0,0,0.3);
    padding: 1rem;
    border-radius: 14px;
  }


  .btn {
    width: 100%;
    justify-content: center;
  }

  .card-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 970px) and (orientation: portrait){
    .two-col {
      display: block;
      text-align: center;
    }

    .caller-warning {
      padding-top:30px;
      padding-bottom:20px;
      //width: 70%;
      margin:auto;
    }

    .box {
      text-align: left;
    }

  }

@media (max-width: 576px) and (orientation: portrait) {

  .hero-text{
    margin-top:350px;
  }

  .hero_content_right {
    background-position: 10% center;
  }

  .box {
    text-align: left;
  }

}
