/* Alltagshelfer Gran Canaria */
:root {
  --primary: #0d4f6b;
  --primary-light: #1a6b8a;
  --accent: #0e7490;
  --sand: #e8c47a;
  --text: #1a202c;
  --text-muted: #4a5568;
  --bg: #ffffff;
  --bg-soft: #f0f7fa;
  --border: #d6e4ec;
  --radius: 8px;
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
  --max: 1100px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.site-header {
  background: #fff; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 0.85rem 0;
  gap: 1rem;
}
.header-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.logo img { height: 78px; width: auto; display: block; }
.site-title {
  color: #0d4f6b !important;
  font-size: clamp(1.55rem, 3.2vw, 2.1rem) !important;
  font-weight: 700 !important;
  line-height: 1.15;
  text-align: center;
  justify-self: center;
  margin: 0;
  padding: 0 0.5rem;
}
.header-nav {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 0.5rem;
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  flex-wrap: wrap;
}
.nav a { color: var(--text); font-weight: 500; font-size: 1.08rem; }
.nav a:hover, .nav a.active { color: var(--accent); text-decoration: none; }
.btn {
  display: inline-block; background: var(--accent); color: #fff !important;
  padding: 0.7rem 1.35rem; border-radius: var(--radius); font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none !important; border: 2px solid var(--accent);
}
.btn:hover { background: var(--primary); border-color: var(--primary); }
.btn-outline { background: transparent; color: var(--accent) !important; }
.btn-outline:hover { background: var(--accent); color: #fff !important; }
.btn-outline-light {
  background: transparent; color: #fff !important; border-color: rgba(255,255,255,0.85);
}
.btn-outline-light:hover { background: #fff; color: var(--primary) !important; }
.nav-toggle {
  display: none; background: none; border: none; font-size: 1.5rem;
  cursor: pointer; color: var(--primary);
}
.hero-photo,
.section-photo {
  position: relative;
  background: var(--primary) center/cover no-repeat;
  color: #fff;
  /* gleiche Startposition der Überschrift auf allen Seiten – tiefer, unter Horizontlinie */
  padding: 9rem 0 3.5rem;
  min-height: 460px;
  display: flex;
  align-items: flex-start;
  box-sizing: border-box;
}
.hero-photo {
  background-image: linear-gradient(105deg, rgba(13,79,107,0.72) 0%, rgba(13,79,107,0.38) 50%, rgba(13,79,107,0.22) 100%), url('../img/hero-maspalomas.jpg');
}
.hero-line,
h2.hero-line {
  color: #ffffff !important;
  font-size: clamp(1.45rem, 3vw, 1.85rem) !important;
  font-weight: 700 !important;
  margin: 0 0 1rem;
  line-height: 1.3;
  max-width: 42rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}
.hero-photo p,
.section-photo > .container > p {
  color: rgba(255,255,255,0.95);
  max-width: 38rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.section-photo {
  /* gleiche Höhe + gleiche Textposition wie Start-Hero */
}
.section-photo.canteras {
  background-image: linear-gradient(105deg, rgba(13,79,107,0.62) 0%, rgba(13,79,107,0.35) 100%), url('../img/canteras.jpg');
  background-position: center 40%;
}
.section-photo.mogan {
  background-image: linear-gradient(105deg, rgba(13,79,107,0.62) 0%, rgba(13,79,107,0.35) 100%), url('../img/mogan.jpg');
  background-position: center center;
}
.section-photo.berge {
  background-image: linear-gradient(105deg, rgba(13,79,107,0.58) 0%, rgba(13,79,107,0.32) 100%), url('../img/berge-tirajana.jpg');
  background-position: center center;
}
.section-photo p, .section-photo li { color: rgba(255,255,255,0.95); }
.section-photo .card {
  background: rgba(255,255,255,0.95); color: var(--text);
  border: none;
}
.section-photo .card h3 { color: var(--primary); }
.section-photo .card p, .section-photo .card li { color: var(--text-muted); }
section { padding: 2.75rem 0; }
section.alt { background: var(--bg-soft); }
h2 { color: var(--primary); font-size: 1.5rem; margin-bottom: 1rem; }
h3 { color: var(--primary); font-size: 1.15rem; margin-bottom: 0.5rem; }
.lead { font-size: 1.05rem; color: var(--text-muted); max-width: 42rem; }
.mt-1 { margin-top: 0.75rem; }
.mt-2 { margin-top: 1.25rem; }
.mt-3 { margin-top: 2rem; }
.text-center { text-align: center; }
.grid-2 {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem;
}
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem 1.35rem; box-shadow: var(--shadow);
}
.card ul { margin-left: 1.1rem; color: var(--text-muted); }
.card li { margin-bottom: 0.35rem; }
.notice {
  background: #e6f6fb; border-left: 4px solid var(--accent);
  padding: 1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0;
}
.steps { counter-reset: step; list-style: none; }
.steps li { position: relative; padding-left: 3rem; margin-bottom: 1.5rem; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 2rem; height: 2rem;
  background: var(--accent); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem;
}
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 2rem; align-items: start;
}
.portrait {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  max-width: 320px;
}
.portrait img { width: 100%; height: auto; object-fit: cover; }
.site-footer {
  background: var(--primary); color: #e2e8f0; padding: 2.5rem 0 1.5rem; margin-top: 1rem;
}
.site-footer a { color: #a8e0f0; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem; margin-bottom: 1.5rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15); padding-top: 1rem;
  font-size: 0.9rem; color: #a0aec0;
}
/* ===== Responsive Breakpoints ===== */

/* Monitor ≥ 1440px */
@media (min-width: 1440px) {
  :root { --max: 1240px; }
  .logo img { height: 88px; }
  .site-title { font-size: clamp(1.7rem, 2.2vw, 2.25rem) !important; }
  .nav a { font-size: 1.12rem; }
  .hero-photo,
  .section-photo {
    padding: 10rem 0 4rem;
    min-height: 500px;
  }
}

/* Laptop 1025–1439px: Basis-Layout, leichte Feinjustierung */
@media (min-width: 1025px) and (max-width: 1439px) {
  .logo img { height: 78px; }
  .hero-photo,
  .section-photo {
    padding: 9rem 0 3.5rem;
    min-height: 460px;
  }
}

/* Tablet quer 901–1024px */
@media (min-width: 901px) and (max-width: 1024px) {
  .container { padding: 0 1.5rem; }
  .logo img { height: 68px; }
  .site-title { font-size: clamp(1.35rem, 2.5vw, 1.75rem) !important; }
  .nav a { font-size: 1rem; gap: 0.5rem; }
  .nav { gap: 0.9rem; }
  .btn { padding: 0.6rem 1.1rem; font-size: 1rem; }
  .hero-photo,
  .section-photo {
    padding: 7.5rem 0 3rem;
    min-height: 400px;
  }
  .hero-line,
  h2.hero-line { font-size: clamp(1.3rem, 2.8vw, 1.65rem) !important; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 1.5rem; }
}

/* Tablet hochkant 601–900px */
@media (min-width: 601px) and (max-width: 900px) {
  .nav-toggle { display: block; }
  .header-nav { position: relative; }
  .nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }
  .nav.open {
    display: flex;
    position: absolute; right: 0; top: calc(100% + 0.35rem);
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1rem 1.25rem;
    box-shadow: var(--shadow); min-width: 220px; z-index: 120;
  }
  .container { padding-left: 1.35rem; padding-right: 1.35rem; }
  .header-inner { padding-left: 0.25rem; padding-right: 0.35rem; }
  .logo { margin-left: 0.15rem; }
  .nav-toggle { margin-right: 0.25rem; padding: 0.35rem 0.45rem; }
  .logo img { height: 64px; }
  .site-title {
    font-size: 1.25rem !important;
    text-align: left;
    justify-self: start;
  }
  .hero-photo,
  .section-photo {
    padding: 6.5rem 0 3rem;
    min-height: 360px;
  }
  .hero-line,
  h2.hero-line { font-size: 1.4rem !important; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 280px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Handy quer (Landscape) */
@media (max-width: 900px) and (orientation: landscape) {
  .nav-toggle { display: block; }
  .header-nav { position: relative; }
  .nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }
  .nav.open {
    display: flex;
    position: absolute; right: 0; top: calc(100% + 0.25rem);
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius); padding: 0.85rem 1rem;
    box-shadow: var(--shadow); min-width: 200px; z-index: 120;
  }
  .container { padding-left: 1.25rem; padding-right: 1.25rem; }
  .logo { margin-left: 0.1rem; }
  .nav-toggle { margin-right: 0.2rem; padding: 0.3rem 0.4rem; }
  .logo img { height: 48px; }
  .site-title { font-size: 1.1rem !important; text-align: left; justify-self: start; }
  .header-inner { padding: 0.45rem 0.15rem; }
  .hero-photo,
  .section-photo {
    padding: 3.5rem 0 2rem;
    min-height: 240px;
  }
  .hero-line,
  h2.hero-line { font-size: 1.25rem !important; margin-bottom: 0.5rem; }
  .hero-actions { margin-top: 0.85rem; }
  .contact-grid { grid-template-columns: 1fr 1.2fr; gap: 1rem; }
  .portrait { max-width: 180px; }
  section { padding: 1.75rem 0; }
}

/* Handy hochkant ≤ 600px */
@media (max-width: 600px) {
  .nav-toggle { display: block; }
  .header-nav { position: relative; }
  .nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }
  .nav.open {
    display: flex;
    position: absolute; right: 0; top: calc(100% + 0.35rem);
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1rem 1.15rem;
    box-shadow: var(--shadow); min-width: 200px; z-index: 120;
  }
  .container { padding: 0 1.15rem; }
  .logo { margin-left: 0.2rem; }
  .nav-toggle { margin-right: 0.25rem; padding: 0.4rem 0.5rem; }
  .logo img { height: 52px; }
  .site-title {
    font-size: 1.05rem !important;
    text-align: left;
    justify-self: start;
    padding: 0;
  }
  .header-inner { padding: 0.55rem 0.2rem; gap: 0.5rem; }
  .hero-photo,
  .section-photo {
    padding: 5rem 0 2.5rem;
    min-height: 320px;
  }
  .hero-line,
  h2.hero-line {
    font-size: 1.25rem !important;
    max-width: 100%;
  }
  .hero-photo p,
  .section-photo > .container > p {
    font-size: 0.95rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    margin-top: 1rem;
  }
  .hero-actions .btn { text-align: center; }
  .grid-2 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 240px; margin: 0 auto; }
  .btn { font-size: 1rem; padding: 0.65rem 1.1rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  section { padding: 2rem 0; }
  h2 { font-size: 1.3rem; }
}
