/*
Theme Name: Custom Bootstrap Theme
Theme URI: https://example.com
Author: Your Name
Author URI: https://example.com
Description: WordPress Theme mit Bootstrap + komponentenbasierten, wiederverwendbaren CSS-Klassen (Sections).
Version: 1.0.0
Text Domain: custom-bootstrap-theme
*/

/* =========================================================
   ROOT TOKENS (Farben/Typo/Radius/Schatten/Spacing)
   -> Verwende diese Variablen überall im Theme
   ========================================================= */
:root{
  /* Brand */
  --color-primary: #8b0052;
  --color-primary-rgb: 139, 0, 82;

  /* Neutrals */
  --color-text: #1f2937;
  --color-muted: #6b7280;
  --color-surface: #ffffff;

  /* Borders / Backgrounds */
  --color-border: rgba(31, 41, 55, 0.18);
  --color-soft: #f7f7f6;

  /* Typography */
  --font-heading: ui-serif, Georgia, "Times New Roman", serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;

  /* Radius */
  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.10);
  --shadow-card: 0 14px 40px rgba(0,0,0,0.06);

  /* Layout */
  --content-max: 760px;

  /* Decorative */
  --line-thickness: 3px;
  --quote-bar-width: 4px;
  --frame-border-width: 2px;
  --frame-offset: 14px;

  /* Buttons */
  --color-btn-dark: #4b4b4b;
  --color-btn-dark-hover: #3f3f3f;

  /* Icon chips */
  --icon-chip-bg: #f0f0ef;
  --icon-chip-fg: #6b7280;
}

/* =========================================================
   BASE (leicht – Bootstrap bleibt führend)
   ========================================================= */
html{
  scroll-behavior: smooth;
}

body{
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-surface);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img{
  max-width: 100%;
  height: auto;
  display: block;
}

a{
  color: inherit;
}

/* Focus sichtbar/sauber */
:where(a, button, input, select, textarea):focus-visible{
  outline: 3px solid rgba(var(--color-primary-rgb), 0.22);
  outline-offset: 3px;
}

/* =========================================================
   GENERIC SECTION / WRAPPER
   ========================================================= */
.c-section{
  background: transparent;
}

.c-section--soft{
  background: var(--color-soft);
}

.c-content-max{
  max-width: var(--content-max);
}

/* =========================================================
   KICKER (Linien - Text - Linien) | wiederverwendbar
   ========================================================= */
.c-kicker{
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--color-text);
}

.c-kicker--center{
  justify-content: center;
}

.c-kicker__text{
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1;
}

.c-kicker__line{
  width: 56px;
  height: var(--line-thickness);
  border-radius: var(--radius-pill);
  background: var(--color-primary);
}

/* =========================================================
   HEADINGS / TEXT (wiederverwendbar)
   ========================================================= */
.c-heading{
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.15;
  color: var(--color-text);
  font-size: clamp(1.9rem, 2.2vw + 1rem, 3rem);
  margin: 0;
}

.c-lead{
  color: var(--color-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0;
}

.c-text{
  color: var(--color-muted);
  line-height: 1.8;
  font-size: 1.05rem;
  margin: 0;
}

/* =========================================================
   BUTTONS (wiederverwendbar)
   ========================================================= */
.c-btn{
  display: inline-flex;
  align-items: center;
  gap: 14px;

  padding: 12px 18px;
  border-radius: var(--radius-pill);
  text-decoration: none;

  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  will-change: transform;
}

.c-btn__label{
  font-size: 0.98rem;
  line-height: 1.1;
}

.c-btn__icon{
  font-size: 1.1rem;
  line-height: 1;
}

/* Outline Button (aus Section 1) */
.c-btn--outline{
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: none;
}

.c-btn--outline .c-btn__label,
.c-btn--outline .c-btn__icon{
  color: var(--color-text);
}

.c-btn--outline:hover{
  border-color: rgba(var(--color-primary-rgb), 0.45);
  transform: translateY(-1px);
}

/* Dark Button (aus Section 2) */
.c-btn--dark{
  background: var(--color-btn-dark);
  border: 1px solid transparent;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

.c-btn--dark .c-btn__label,
.c-btn--dark .c-btn__icon{
  color: #fff;
}

.c-btn--dark:hover{
  background: var(--color-btn-dark-hover);
  transform: translateY(-1px);
}

/* =========================================================
   SECTION 1: Bild mit versetzter lila Linie (Frame Offset)
   ========================================================= */
.c-frame-offset{
  position: relative;
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 620px;
}

.c-frame-offset::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;

  border: var(--frame-border-width) solid rgba(var(--color-primary-rgb), 0.35);
  transform: translate(var(--frame-offset), var(--frame-offset));

  z-index: 0;
  pointer-events: none;
}

.c-frame-offset__img{
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;

  border-radius: inherit;
  box-shadow: var(--shadow-soft);
  object-fit: cover;
}

/* Mobile Feintuning: weniger Offset, damit nichts „zu weit“ wirkt */
@media (max-width: 575.98px){
  .c-frame-offset::after{
    transform: translate(10px, 10px);
  }
}

/* =========================================================
   SECTION 1: Quote mit linker lila Leiste
   ========================================================= */
.c-quote{
  position: relative;
  margin: 0;
  padding-left: 22px;
}

.c-quote::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: var(--quote-bar-width);
  height: calc(100% - 0.25em);
  border-radius: var(--radius-pill);
  background: var(--color-primary);
}

.c-quote__text{
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--color-muted);
  line-height: 1.6;
  font-size: 1.05rem;
  margin: 0;
}

/* =========================================================
   SECTION 2: Cards (wiederverwendbar)
   ========================================================= */
.c-card{
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);

  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.c-card__head{
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.c-card__title{
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-text);
  font-size: 1.25rem;
  line-height: 1.2;
  margin: 2px 0 0 0;
}

.c-card__text{
  color: var(--color-muted);
  line-height: 1.8;
  font-size: 1.02rem;
  margin: 0;
}

/* Icon-Chip (links oben in Cards) */
.c-icon-chip{
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--icon-chip-bg);
  color: var(--icon-chip-fg);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.c-icon-chip svg{
  display: block;
}

/* Link „Mehr erfahren →“ */
.c-link{
  display: inline-flex;
  align-items: center;
  gap: 10px;

  text-decoration: none;
  color: var(--color-muted);
  font-size: 0.98rem;

  transition: transform 160ms ease, color 160ms ease;
  will-change: transform;
}

.c-link__icon{
  font-size: 1.05rem;
  line-height: 1;
}

.c-link:hover{
  color: var(--color-text);
  transform: translateX(2px);
}

/* =========================================================
   OPTIONAL: kleine Qualitäts-Utilities (harmlos, wiederverwendbar)
   ========================================================= */
.c-shadow-soft{ box-shadow: var(--shadow-soft); }
.c-shadow-card{ box-shadow: var(--shadow-card); }
.c-rounded-xl{ border-radius: var(--radius-xl); }
.c-rounded-lg{ border-radius: var(--radius-lg); }
.c-rounded-pill{ border-radius: var(--radius-pill); }

/* =========================================================
   FOOTER (Bootstrap Icons)
   ========================================================= */
:root{
  --footer-bg: #3a3a3a;
  --footer-border: rgba(255,255,255,0.08);
  --footer-text: #fff;
  --footer-muted: #fff;
  --footer-heading: rgba(255,255,255,0.92);
}

.c-footer{
  background: var(--footer-bg);
  color: var(--footer-text);
}

.c-footer__title{
  font-family: var(--font-heading);
  color: var(--footer-heading);
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}

.c-footer__kicker{
  color: var(--footer-muted);
  line-height: 1.6;
  margin: 0;
}

.c-footer__text{
  color: var(--footer-text);
  line-height: 1.7;
  margin: 0;
  max-width: 42ch;
}

.c-footer__accent{
  color: var(--color-primary);
}

/* Links */
a.c-footer__link,
.c-footer__link{
  color: var(--footer-text);
  text-decoration: none;
  transition: color 160ms ease;
}

.c-footer__link:hover{
  color: rgba(255,255,255,0.92);
}

/* List (reusable) */
.c-list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.c-list__item{
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--footer-text);
  line-height: 1.6;
}

/* Icons: Bootstrap Icons in Brand-Farbe */
.c-list__icon{
  font-size: 1.05rem;
  line-height: 1;
  color: var(--color-primary);
  opacity: 0.95;
  flex: 0 0 auto;
  margin-top: 0.1rem;
}

/* Times */
.c-footer__time{
  color: rgba(255,255,255,0.86);
  display: inline-flex;
  gap: 12px;
  align-items: flex-start;
}

/* Bottom bar */
.c-footer__bottom{
  border-top: 1px solid var(--footer-border);
}

.c-footer__copy,
.c-footer__legal{
  font-size: 0.95rem;
}

.c-footer__copy{
  color: var(--footer-muted);
}

@media (max-width: 575.98px){
  .c-footer__legal{
    gap: 18px !important;
  }
}
