/* ============================================
   Marine Experte — Apple-Style Content Layer
   Überschreibt Calypso/Bootstrap nur wo nötig.
   Kein universeller Reset — Bootstrap-Grid bleibt intakt.
   ============================================ */

/* --- Variablen --- */
:root {
  --me-navy: #0D2B4E;
  --me-blue: rgba(42,100,150,1);
  --me-text: #1d1d1f;
  --me-text-secondary: #515154;
  --me-text-muted: #86868b;
  --me-bg-alt: #f5f5f7;
  --me-border: #e8e8ed;
  --me-radius: 18px;
  --me-radius-sm: 12px;
  --me-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --me-shadow-img: 0 20px 60px rgba(0,0,0,0.12);
  --me-shadow-card: 0 4px 16px rgba(0,0,0,0.06);
}

/* --- Body Font nur für Apple-Style-Seiten --- */
body.home.page-template-default,
body.page.page-template-default {
  font-family: var(--me-font);
  color: var(--me-text-secondary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   STARTSEITE — Hero Slider (Flexslider)
   ============================================ */
.hero-slider {
  position: relative;
  width: 100%;
  margin-top: -40px;
}

.hero-flexslider {
  margin: 0;
  border: none;
  background: none;
}

.hero-flexslider .slides {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-flexslider .slides > li {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 500px;
  max-height: 700px;
  background-size: cover;
  background-position: center;
}

.hero-flexslider .hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(13,43,78,0.55), rgba(13,43,78,0.75));
  z-index: 1;
}

.hero-flexslider .hero-image-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  max-width: 760px;
  width: 90%;
  padding: 0 22px;
  text-align: center;
}

.hero-heading {
  font-family: var(--me-font);
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 22px;
  text-align: center;
}

.hero-subtitle {
  font-family: var(--me-font);
  color: rgba(255,255,255,0.92);
  font-size: 1.25rem;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Flexslider Nav Arrows */
.hero-flexslider .flex-direction-nav a {
  background: rgba(255,255,255,0.35) !important;
  width: 50px !important;
  height: 50px !important;
  border-radius: 50% !important;
  text-indent: -999em !important;
  opacity: 1 !important;
  z-index: 10;
  transition: background 0.3s;
}

.hero-flexslider .flex-direction-nav a:hover {
  background: rgba(255,255,255,0.55) !important;
}

.hero-flexslider .flex-direction-nav a.flex-prev {
  background: rgba(255,255,255,0.35) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="15 18 9 12 15 6"></polyline></svg>') center no-repeat !important;
  text-indent: -999em !important;
}

.hero-flexslider .flex-direction-nav a.flex-next {
  background: rgba(255,255,255,0.35) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="9 18 15 12 9 6"></polyline></svg>') center no-repeat !important;
  text-indent: -999em !important;
}

.hero-flexslider .flex-direction-nav a.flex-prev:hover {
  background: rgba(255,255,255,0.55) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="15 18 9 12 15 6"></polyline></svg>') center no-repeat !important;
}

.hero-flexslider .flex-direction-nav a.flex-next:hover {
  background: rgba(255,255,255,0.55) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="9 18 15 12 9 6"></polyline></svg>') center no-repeat !important;
}

.hero-flexslider .flex-direction-nav .flex-prev {
  left: 30px;
}

.hero-flexslider .flex-direction-nav .flex-next {
  right: 30px;
}

/* Flexslider Pagination Dots */
.hero-flexslider .flex-control-nav {
  bottom: 30px;
  z-index: 10;
}

.hero-flexslider .flex-control-paging li a {
  background: rgba(255,255,255,0.4);
  border: none;
  width: 10px;
  height: 10px;
  box-shadow: none;
}

.hero-flexslider .flex-control-paging li a.flex-active {
  background: #fff;
}

/* ============================================
   APPLE-STYLE SEKTIONEN (Startseite)
   ============================================ */
.apple-section {
  padding: 90px 0;
}

.apple-section-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 22px;
}

.apple-headline {
  font-family: var(--me-font);
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--me-text);
  margin-bottom: 26px;
  text-align: center;
}

.apple-body {
  font-family: var(--me-font);
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--me-text-secondary);
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

/* --- Split Sections (Text + Bild) --- */
.split-section {
  border-top: 1px solid var(--me-border);
}

.split-section .apple-section-inner {
  display: flex;
  align-items: center;
  gap: 90px;
}

.split-section .split-text {
  flex: 1 1 48%;
}

.split-section .split-image {
  flex: 1 1 52%;
  margin: 0;
}

.split-section .apple-headline,
.split-section .apple-body,
.split-section .apple-link {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.split-section.reverse .apple-section-inner {
  flex-direction: row-reverse;
}

.split-image img {
  width: 100%;
  height: auto;
  border-radius: var(--me-radius);
  display: block;
  box-shadow: var(--me-shadow-img);
}

.split-image figcaption {
  font-size: 0.8rem;
  color: var(--me-text-muted);
  text-align: center;
  margin-top: 14px;
}

.apple-link {
  margin-top: 24px;
  font-size: 1.05rem;
}

.apple-link a {
  color: var(--me-blue);
  text-decoration: none;
  font-weight: 500;
}

.apple-link a:hover {
  text-decoration: underline;
}

/* --- Services Section --- */
.services-section {
  background: var(--me-bg-alt);
}

.services-section .apple-headline {
  margin-bottom: 14px;
}

.services-intro {
  margin-bottom: 48px;
  font-size: 1.15rem;
}

.services-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.services-list li {
  background: #fff;
  padding: 28px 24px;
  border-radius: var(--me-radius-sm);
  text-align: center;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--me-text);
  box-shadow: var(--me-shadow-card);
}

.services-list li a {
  color: var(--me-text);
  text-decoration: none;
  display: block;
  width: 100%;
  height: 100%;
  transition: color 0.2s;
}

.services-list li a:hover {
  color: var(--me-blue);
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  background: var(--me-bg-alt);
}

.cta-section .apple-body {
  margin-bottom: 36px;
}

.cta-buttons {
  display: inline-flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.cta-button {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 980px;
  font-size: 1.05rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cta-button.primary {
  background: var(--me-blue);
  color: #fff !important;
}
.cta-button.primary:hover {
  background: rgba(32,80,120,1);
  color: #fff !important;
}

.cta-button.secondary {
  background: #fff;
  color: var(--me-blue);
  border: 1px solid var(--me-blue);
}

.cta-button.secondary:hover {
  background: var(--me-bg-alt);
}

/* ============================================
   INNENSEITEN — Apple-Style Content
   ============================================ */

/* --- Page Header Banner --- */
.pageheader {
  background: linear-gradient(135deg, var(--me-navy) 0%, #1A3F6A 100%);
  padding: 120px 0 60px;
  margin-top: -40px;
}

.pageheader .pagetitle {
  font-family: var(--me-font);
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}

.headeroverlay {
  background: none;
}

/* --- Content Container (wrapsemibox) --- */
.wrapsemibox {
  padding: 0;
}

.wrapsemibox .semiboxshadow {
  display: none;
}

.wrapsemibox > .container {
  max-width: 980px;
  padding: 0 22px;
}

.wrapsemibox > .container > .row {
  margin: 0;
}

.wrapsemibox > .container > .row > .col-md-12 {
  padding: 0;
}

/* --- Textwidget als Apple-Content --- */
.wrapsemibox .textwidget {
  font-family: var(--me-font);
  color: var(--me-text-secondary);
  line-height: 1.7;
  padding: 80px 0 60px;
}

.wrapsemibox .textwidget > h1 {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--me-text);
  margin-bottom: 28px;
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.wrapsemibox .textwidget > h2 {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--me-text);
  margin-top: 56px;
  margin-bottom: 18px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.wrapsemibox .textwidget > h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--me-text);
  margin-top: 36px;
  margin-bottom: 14px;
}

.wrapsemibox .textwidget > p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--me-text-secondary);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 20px;
}

.wrapsemibox .textwidget > p:first-of-type {
  margin-top: 0;
}

.wrapsemibox .textwidget > ul {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 20px;
  padding-left: 24px;
  list-style: none;
}

.wrapsemibox .textwidget > ul > li {
  position: relative;
  padding: 6px 0 6px 24px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--me-text-secondary);
}

.wrapsemibox .textwidget > ul > li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--me-blue);
  font-weight: 700;
  font-size: 1.2em;
  line-height: 1;
  top: 8px;
}

/* --- Bilder im Content --- */
.wrapsemibox .textwidget img.aligncenter,
.wrapsemibox .textwidget img[class*="aligncenter"] {
  display: block;
  margin: 40px auto;
  max-width: 100%;
  height: auto;
  border-radius: var(--me-radius);
  box-shadow: var(--me-shadow-img);
}

.wrapsemibox .textwidget img[width="724"],
.wrapsemibox .textwidget img[width="400"] {
  max-width: 100%;
  height: auto;
  border-radius: var(--me-radius);
  box-shadow: var(--me-shadow-img);
}

/* --- Person/Caption unter Bildern --- */
.wrapsemibox .textwidget .person-name {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--me-text);
  text-align: center;
  margin-top: 16px;
}

.wrapsemibox .textwidget .person-title {
  display: block;
  font-size: 0.95rem;
  color: var(--me-text-muted);
  text-align: center;
  margin-bottom: 4px;
}

.wrapsemibox .textwidget > strong:first-of-type {
  display: block;
  text-align: center;
}

/* --- Links im Content --- */
.wrapsemibox .textwidget a {
  color: var(--me-blue);
  text-decoration: none;
}

.wrapsemibox .textwidget a:hover {
  text-decoration: underline;
}

/* --- Clearfix Helper --- */
.wrapsemibox .clearfix {
  height: 0;
  border: none;
  margin: 0;
  padding: 0;
}

/* ============================================
   G608 CARDS
   ============================================ */
.g608-card {
  background: #fff;
  border: 1px solid var(--me-border);
  border-radius: var(--me-radius-sm);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--me-shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
}

.g608-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.g608-card h3 {
  font-family: var(--me-font);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--me-text);
  margin: 0 0 12px;
}

.g608-card h3 a {
  color: var(--me-text);
  text-decoration: none;
}

.g608-card h3 a:hover {
  color: var(--me-blue);
}

.g608-card p {
  font-size: 0.95rem;
  color: var(--me-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ============================================
   KONTAKTSEITE — Apple-Style Form
   ============================================ */
.contact-form {
  max-width: 680px;
  margin: 0 auto;
  padding: 0;
}

.contact-form p {
  margin-bottom: 18px;
}

.contact-form label {
  display: block;
  font-family: var(--me-font);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--me-text);
  margin-bottom: 6px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form input[type="number"],
.contact-form input[type="date"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--me-font);
  font-size: 1rem;
  color: var(--me-text);
  background: #fff;
  border: 1.5px solid var(--me-border);
  border-radius: var(--me-radius-sm);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--me-blue);
  box-shadow: 0 0 0 4px rgba(42,100,150,0.1);
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-form .btn-primary,
.contact-form input[type="submit"] {
  background: var(--me-blue);
  color: #fff;
  border: none;
  padding: 14px 36px;
  border-radius: 980px;
  font-family: var(--me-font);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.contact-form .btn-primary:hover,
.contact-form input[type="submit"]:hover {
  background: rgba(32,80,120,1);
}

/* --- Kontakt-Info Block --- */
.contact-info-block {
  text-align: center;
  margin-bottom: 60px;
}

.contact-info-block h2 {
  font-family: var(--me-font);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--me-text);
  margin-bottom: 10px;
}

.contact-info-block p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--me-text-secondary);
}

.contact-info-block strong {
  color: var(--me-text);
}

/* --- Google Maps --- */
.wrapsemibox iframe {
  border: none;
  border-radius: var(--me-radius);
  box-shadow: var(--me-shadow-card);
  margin-top: 40px;
  max-width: 100%;
}

/* ============================================
   FOOTER — Apple Style
   ============================================ */
.footer-widget-area {
  background: #1d1d1f;
  color: rgba(255,255,255,0.6);
  padding: 80px 0 50px;
}

.footer-widget-area .container {
  max-width: 980px;
}

.footer-widget-area .row {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
}

.footer-widget-area .bottom-widget {
  flex: 1 1 300px;
  padding: 0;
}

.footer-widget-area h3.widget_title {
  font-family: var(--me-font);
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  padding-bottom: 0;
  border: none;
}

.footer-widget-area .textwidget {
  font-family: var(--me-font);
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  padding: 0;
}

.footer-widget-area .textwidget p {
  margin-bottom: 10px;
}

.footer-widget-area .textwidget a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-widget-area .textwidget a:hover {
  color: #fff;
}

.footer-widget-area .textwidget strong {
  color: rgba(255,255,255,0.75);
  font-weight: 500;
}

/* --- Footer Bottom Bar --- */
.nowidgetbottom {
  background: #000;
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.nowidgetbottom .container {
  max-width: 980px;
}

.nowidgetbottom .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
}

.nowidgetbottom .col-sm-4,
.nowidgetbottom .col-sm-8 {
  flex: none;
  width: auto;
  max-width: none;
  float: none;
}

.nowidgetbottom,
.nowidgetbottom a {
  font-family: var(--me-font);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

.nowidgetbottom a:hover {
  color: rgba(255,255,255,0.6);
}

.footermenu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

.footermenu li {
  display: inline-flex;
  align-items: center;
}

.footermenu li + li::before {
  content: '|';
  margin: 0 16px;
  color: rgba(255,255,255,0.2);
  font-size: 0.82rem;
}

.footermenu a {
  color: rgba(255,255,255,0.35) !important;
  font-size: 0.82rem !important;
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}

.footermenu a:hover {
  color: rgba(255,255,255,0.6) !important;
}

/* --- Back to Top --- */
#back-top,
.gototop {
  display: none;
}

/* ============================================
   TOP BAR (Telefon/Social)
   ============================================ */
.toparea {
  background: var(--me-navy);
  color: rgba(255,255,255,0.7);
  padding: 8px 0;
  margin-bottom: 0 !important;
  font-family: var(--me-font);
  font-size: 0.82rem;
}

.toparea a {
  color: rgba(255,255,255,0.7);
}

.toparea .social-icons a {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  margin-left: 12px;
}

.toparea .social-icons a:hover {
  color: #fff;
}

.toparea .separator {
  margin: 0 12px;
  opacity: 0.3;
}

/* ============================================
   NAVIGATION (Calypso navbar)
   ============================================ */
.navbar.navbar-fixed-top {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--me-border);
  box-shadow: none;
  top: 40px !important;
}

#page {
  margin-top: 120px !important;
}

.navbar-brand .textbrnd {
  font-family: var(--me-font);
  font-weight: 600;
  color: var(--me-text);
}

.navbar-nav > li > a {
  font-family: var(--me-font);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--me-text-secondary);
  transition: color 0.2s;
}

.navbar-nav > li > a:hover,
.navbar-nav > li.active > a {
  color: #fff !important;
}

/* ============================================
   LEGAL PAGES (AGB, Datenschutz, Impressum)
   ============================================ */
.legal-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 80px 22px 60px;
  font-family: var(--me-font);
}

.legal-page h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--me-text);
  margin-bottom: 28px;
}

.legal-page h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--me-text);
  margin: 28px 0 14px;
}

.legal-page h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--me-text);
  margin: 20px 0 10px;
}

.legal-page p {
  color: var(--me-text-secondary);
  line-height: 1.75;
  margin-bottom: 14px;
}

.legal-page ul,
.legal-page ol {
  color: var(--me-text-secondary);
  line-height: 1.75;
  margin-bottom: 14px;
  padding-left: 22px;
}

.legal-page li {
  margin-bottom: 6px;
}

.legal-page a {
  color: var(--me-blue);
  text-decoration: none;
}

.legal-page a:hover {
  text-decoration: underline;
}

.legal-page strong {
  color: var(--me-text);
}

.legal-page table {
  margin: 16px 0;
  border-collapse: collapse;
  width: 100%;
}

.legal-page th {
  text-align: left;
  padding: 10px;
  color: var(--me-text);
  border-bottom: 2px solid var(--me-border);
}

.legal-page td {
  padding: 10px;
  color: var(--me-text-secondary);
  border-bottom: 1px solid #f0f0f5;
}

/* ============================================
   COOKIE BANNER
   ============================================ */
.pea_cook_wrapper {
  font-family: var(--me-font);
  border-radius: var(--me-radius-sm) 0 0 0;
}

.pea_cook_wrapper p {
  font-size: 0.85rem;
}

.pea_cook_btn {
  font-family: var(--me-font);
  font-weight: 500;
  border: none;
  padding: 8px 20px;
  border-radius: 980px;
  cursor: pointer;
  margin-left: 12px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .hero-flexslider .slides > li {
    height: auto;
    min-height: 400px;
    padding: 80px 0;
  }

  .hero-flexslider .hero-heading {
    font-size: 2.2rem;
  }

  .hero-flexslider .hero-subtitle {
    font-size: 1.1rem;
  }

  .apple-section {
    padding: 60px 0;
  }

  .apple-headline {
    font-size: 1.9rem;
  }

  .split-section .apple-section-inner,
  .split-section.reverse .apple-section-inner {
    flex-direction: column;
    gap: 40px;
  }

  .split-section .apple-headline,
  .split-section .apple-body,
  .split-section .apple-link {
    text-align: center;
  }

  .services-list {
    grid-template-columns: 1fr;
  }

  .wrapsemibox .textwidget {
    padding: 60px 0 40px;
  }

  .wrapsemibox .textwidget > h1 {
    font-size: 1.7rem;
  }

  .wrapsemibox .textwidget > h2 {
    font-size: 1.35rem;
  }

  .wrapsemibox .textwidget > p,
  .wrapsemibox .textwidget > ul {
    font-size: 1rem;
  }

  .pageheader {
    padding: 100px 0 40px;
  }

  .pageheader .pagetitle {
    font-size: 1.7rem;
  }

  .footermenu {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }
}

/* ============================================
   MOBILE-FIRST — ≤768px
   ============================================ */
@media (max-width: 768px) {

  /* --- Toparea: zentriert auf Mobile --- */
  .toparea {
    padding: 6px 0;
  }
  .toparea .col-md-6 {
    width: 100%;
    float: none;
    text-align: center !important;
  }
  .toparea .text-right {
    text-align: center !important;
  }
  .toparea .social-icons a {
    margin: 0 6px;
  }
  .toparea .separator {
    display: none;
  }

  /* --- Navbar: fixiert oben, Toparea scrollt darunter weg (wie Desktop) --- */
  .navbar.navbar-fixed-top {
    top: 0 !important;
    position: fixed !important;
  }
  #page {
    margin-top: 131px !important;
  }
  .navbar-brand .textbrnd {
    font-size: 1rem;
  }
  .navbar-brand img {
    max-height: 36px;
  }
  .navbar-toggle {
    margin-top: 8px;
    margin-bottom: 6px;
  }
  .navbar-collapse {
    max-height: 280px;
    overflow-y: auto;
  }

  /* --- Mobile Nav-Links: Calypso setzt bg:#555, wir setzen color:#fff --- */
  .navbar-nav > li > a {
    color: #fff !important;
  }
  .navbar-nav > li.active > a {
    color: #5b9fd6 !important;
  }
  .navbar-nav > li > a:hover {
    color: #5b9fd6 !important;
  }

  /* --- Hero Slider: kompakter --- */
  .hero-slider {
    margin-top: 0;
  }
  .hero-flexslider {
    min-height: 380px !important;
  }
  .hero-flexslider .slides {
    min-height: 380px !important;
  }
  .hero-flexslider .slides > li {
    height: 380px !important;
    min-height: 380px !important;
    padding: 60px 20px;
    overflow: hidden;
  }
  .hero-flexslider .hero-heading {
    font-size: 1.4rem;
    margin-bottom: 14px;
    padding: 0 10px;
  }
  .hero-flexslider .hero-subtitle {
    font-size: 0.88rem;
    line-height: 1.5;
    padding: 0 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  .hero-flexslider .flex-direction-nav a {
    width: 36px !important;
    height: 36px !important;
  }
  .hero-flexslider .flex-direction-nav .flex-prev {
    left: 10px;
  }
  .hero-flexslider .flex-direction-nav .flex-next {
    right: 10px;
  }

  /* --- Apple Sections: weniger Padding --- */
  .apple-section {
    padding: 40px 0;
  }
  .apple-section-inner {
    padding: 0 18px;
  }
  .apple-headline {
    font-size: 1.5rem;
    margin-bottom: 18px;
  }
  .apple-body {
    font-size: 1rem;
    line-height: 1.6;
  }

  /* --- Split Sections: sauber stapeln --- */
  .split-section .apple-section-inner {
    gap: 30px;
  }
  .split-image img {
    border-radius: 12px;
  }

  /* --- Services --- */
  .services-list {
    gap: 12px;
  }
  .services-list li {
    padding: 20px 16px;
    font-size: 0.95rem;
  }

  /* --- CTA --- */
  .cta-buttons {
    gap: 12px;
  }
  .cta-button {
    padding: 12px 24px;
    font-size: 0.95rem;
  }

  /* --- Innenseiten: pageheader Banner --- */
  .pageheader {
    padding: 20px 20px 20px !important;
    margin-top: 0 !important;
    min-height: 70px;
  }
  .pageheader .headeroverlay {
    width: 100%;
    padding: 0;
  }
  .pageheader .container {
    width: 100%;
    padding: 0;
  }
  .pageheader .pagetitle {
    font-size: 1.5rem !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
  }
  /* wrapsemibox darf nicht über pageheader ziehen */
  .wrapsemibox {
    margin-top: 0 !important;
  }
  .wrapsemibox .textwidget {
    padding: 40px 0 30px;
  }
  .wrapsemibox > .container {
    padding: 0 18px;
  }
  .wrapsemibox .textwidget > h1 {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }
  .wrapsemibox .textwidget > h2 {
    font-size: 1.2rem;
    margin-top: 40px;
  }
  .wrapsemibox .textwidget > p,
  .wrapsemibox .textwidget > ul {
    font-size: 0.95rem;
  }

  /* --- G608 Cards --- */
  .g608-card {
    padding: 24px 18px;
  }
  .g608-card h3 {
    font-size: 1.1rem;
  }

  /* --- Kontaktformular --- */
  .contact-form {
    padding: 0 4px;
  }
  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    font-size: 16px; /* iOS Zoom verhindern */
  }

  /* --- Hero image content: sicherer padding --- */
  .hero-flexslider .hero-image-content {
    width: 94%;
    padding: 0 10px;
    box-sizing: border-box;
  }

  /* --- Footer --- */
  .footer-widget-area {
    padding: 50px 0 30px;
  }
  .footer-widget-area .row {
    gap: 30px;
  }
  .footer-widget-area .bottom-widget {
    flex: 1 1 100%;
  }
  .footer-widget-area .container {
    padding: 0 18px;
  }

  /* --- Footer Bottom Bar: stapeln --- */
  .nowidgetbottom .row {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .nowidgetbottom .col-sm-4,
  .nowidgetbottom .col-sm-8 {
    width: 100%;
    text-align: center;
  }
  .footermenu {
    justify-content: center;
    gap: 8px;
  }
  .footermenu li + li::before {
    margin: 0 8px;
  }

  /* --- Footer-Links heller: Kontrast verbessert --- */
  .nowidgetbottom,
  .nowidgetbottom a {
    color: rgba(255,255,255,0.6) !important;
  }
  .footermenu a {
    color: rgba(255,255,255,0.6) !important;
  }
  .footermenu a:hover {
    color: rgba(255,255,255,0.9) !important;
  }

  /* --- Cookie Banner: kompakter auf Mobile --- */
  .pea_cook_wrapper {
    padding: 10px 15px !important;
  }
  .pea_cook_wrapper p {
    font-size: 0.8rem;
    line-height: 1.4;
  }
  .pea_cook_btn {
    margin-left: 8px;
    padding: 6px 14px;
  }
}

/* ============================================
   SMALL MOBILE — ≤480px (iPhone SE, ältere Android)
   ============================================ */
@media (max-width: 480px) {

  /* --- Toparea: Social-Icons ausblenden --- */
  .toparea .social-icons {
    display: none;
  }
  .toparea .col-md-6:first-child {
    font-size: 0.75rem;
  }

  /* --- Hero: kompakter, Text nicht abschneiden --- */
  .hero-flexslider .slides > li {
    height: auto !important;
    min-height: 340px;
    padding: 50px 20px;
    overflow: hidden;
  }
  .hero-flexslider .hero-heading {
    font-size: 1.3rem;
  }
  .hero-flexslider .hero-subtitle {
    font-size: 0.9rem;
  }

  /* --- Flexslider Nav-Pfeile ausblenden --- */
  .hero-flexslider .flex-direction-nav {
    display: none;
  }

  /* --- Sections --- */
  .apple-section {
    padding: 30px 0;
  }
  .apple-headline {
    font-size: 1.3rem;
  }

  /* --- Kontaktformular Labels --- */
  .contact-form label {
    font-size: 0.8rem;
  }

  /* --- Footer Text größer --- */
  .footer-widget-area .textwidget {
    font-size: 0.85rem;
  }
}