/*
Theme Name: Hello Elementor Child – Adams Tapas
Theme URI: https://adams-tapas.net/
Description: Child-Theme von Hello Elementor mit dem Design-System der Adams Tapas & Weinlounge (Farben, Typografie, globale Utility-Klassen).
Author: Adams Tapas
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-elementor-child
*/

/* ==========================================================================
   Design-Tokens
   ========================================================================== */
:root {
  --at-ink: #171310;        /* Seitenhintergrund dunkel */
  --at-ink-deep: #100d0a;   /* Topbar/Footer */
  --at-band: #1e1812;       /* abgesetzte Sektionen */
  --at-gold: #e69a55;       /* Akzent (an Logo-Apricot angeglichen) */
  --at-gold-light: #f2b077; /* Akzent hover */
  --at-terra: #a64b2a;      /* Terrakotta – Zweitakzent (Badges, sekundäre CTAs) */
  --at-cream: #efe8dc;      /* Haupttext */
  --at-sand-light: #f2eee7; /* Fließtext (aufgehellt) */
  --at-sand: #b8ac97;       /* gedämpfter Text */
  --at-stone: #aaa08b;      /* Nebentexte */
  --at-serif: 'Marcellus', serif;
  --at-sans: 'Jost', sans-serif;          /* UI: Navigation, Buttons, Labels */
  --at-body-font: 'Nunito Sans', 'Segoe UI', sans-serif; /* Fließtext: gut lesbar auf Dunkel */
}

/* ==========================================================================
   Globale Grundlagen
   ========================================================================== */
/* Smooth Scroll liegt jetzt komplett im Plugin "Adams – Main"
   (JS-Animation + scroll-padding, abschaltbar unter Adams – Main →
   Einstellungen). Hier bewusst keine scroll-behavior-Regeln mehr –
   CSS-Smooth würde die JS-Animation pro Frame verfälschen. */

body {
  background: var(--at-ink);
  color: var(--at-cream);
  font-family: var(--at-body-font);
  font-size: 17px;
  line-height: 1.7;
}

body a {
  color: var(--at-gold);
  text-decoration: none;
}

body a:hover {
  color: var(--at-gold-light);
}

::selection {
  background: var(--at-gold);
  color: var(--at-ink);
}

/* Fokus- und Active-Zustände einheitlich in Gold –
   überschreibt die rosafarbenen Theme-/Elementor-Defaults.
   Sichtbarer Fokus bleibt für Tastaturnutzer erhalten (:focus-visible). */
a:active,
button:active {
  color: var(--at-gold-light);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid rgba(230, 154, 85, 0.75);
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible {
  color: var(--at-gold);
}

h1, h2, h3, h4, h5, h6,
.elementor-heading-title {
  font-family: var(--at-serif);
  font-weight: 400;
  color: var(--at-cream);
  /* Kundenwunsch: alle Überschriften in Versalien; leichte Sperrung
     für bessere Lesbarkeit von Uppercase-Serifen. */
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ==========================================================================
   Utility-Klassen für Elementor-Elemente (per „CSS-Klassen“-Feld vergeben)
   ========================================================================== */

/* kleine goldene Overline über Überschriften */
.at-eyebrow {
  font-size: 17px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--at-gold);
}

.at-eyebrow .elementor-heading-title,
.at-eyebrow p {
  font-family: var(--at-sans);
  font-size: 17px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--at-gold);
  margin: 0;
}

/* Überschriften-Größen */
.at-h1 .elementor-heading-title {
  font-size: 64px;
  line-height: 1.1;
}

.at-h2 .elementor-heading-title {
  font-size: 38px;
}

.at-h3 .elementor-heading-title {
  font-size: 22px;
}

/* große Ziffern (Warum wir) */
.at-num .elementor-heading-title {
  font-size: 52px;
  color: rgba(230, 154, 85, 0.45);
}

/* Fließtext: Nunito Sans in 400 – deutlich besser lesbar auf dunklem Grund
   als das vorherige Jost 300 */
.at-body,
.at-body p {
  font-family: var(--at-body-font);
  color: var(--at-sand-light);
  line-height: 1.75;
  font-weight: 400;
  font-size: 16px;
}

.at-body p {
  margin: 0 0 12px;
}

.at-body p:last-child {
  margin-bottom: 0;
}

.at-muted,
.at-muted p {
  color: var(--at-stone);
  font-weight: 300;
}

/* Info-Label (Kontakt-Spalten) */
.at-label .elementor-heading-title,
.at-label {
  font-family: var(--at-sans);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--at-gold);
}

/* Buttons: Optik liegt in den Elementor-Widget-Einstellungen.
   Hier nur sanfte Übergänge. */
.at-btn-solid .elementor-button,
.at-btn-outline .elementor-button,
.at-btn-gold-outline .elementor-button {
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

/* gerahmtes Bild mit Gold-Schatten (Über uns – Bild rechts, Schatten nach links) */
.at-frame img {
  border: 1px solid rgba(230, 154, 85, 0.3);
  box-shadow: -24px 24px 0 rgba(230, 154, 85, 0.08);
  object-fit: cover;
}

/* Topbar */
.at-topbar {
  font-size: 13px;
  color: var(--at-stone);
}

.at-topbar .at-stars {
  color: var(--at-gold);
  letter-spacing: 2px;
}

.at-topbar a {
  color: var(--at-sand-light);
}

.at-topbar a.at-phone {
  color: var(--at-gold);
}

/* Event-Karten: Listen mit goldener Raute als Aufzählungszeichen.
   Per CSS gezeichnet (rotiertes Quadrat), damit sie auf jedem System
   identisch aussieht – kein Font-Glyph. */
.at-dashlist .elementor-icon-list-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  line-height: 1.55;
}

.at-dashlist .elementor-icon-list-item::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  background: linear-gradient(135deg, var(--at-gold-light), var(--at-gold));
  transform: rotate(45deg) translateY(-1px);
  box-shadow: 0 0 0 3px rgba(230, 154, 85, 0.12);
}

/* Elementors Standard-Häkchen ausblenden */
.at-dashlist .elementor-icon-list-icon {
  display: none;
}

/* Galerie: echtes CSS-Grid statt Elementors Negativ-Margin-Spacing.
   Elementor setzt sonst margin:0 -4px -4px 0 auf .gallery → 4px Overflow.
   Grid mit gap löst die Abstände sauber ohne Überstand. */
.at-gallery .gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin: 0 !important;
}

.at-gallery .gallery-item {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.at-gallery .gallery-icon {
  margin: 0;
}

.at-gallery .gallery-item img,
.at-gallery img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  border: none;
}

/* Social-Icons im Footer: goldene Kreise */
.at-social .elementor-social-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(230, 154, 85, 0.4);
  border-radius: 50%;
  transition: background 0.2s, border-color 0.2s;
}

.at-social .elementor-social-icon i {
  font-size: 16px;
}

.at-social .elementor-social-icon:hover {
  background: rgba(230, 154, 85, 0.1);
  border-color: var(--at-gold);
}

.at-social .elementor-social-icon i,
.at-social .elementor-social-icon svg {
  color: var(--at-gold);
  fill: var(--at-gold);
}

/* Mobil: kleinere Social-Kreise für einen kompakteren Footer */
@media (max-width: 767px) {
  .at-social .elementor-social-icon {
    width: 32px;
    height: 32px;
  }

  .at-social .elementor-social-icon i {
    font-size: 13px;
  }

  .at-social .elementor-social-icon svg {
    width: 13px;
    height: 13px;
  }
}

/* Footer */
.at-footer {
  font-size: 14px;
  color: var(--at-stone);
}

.at-footer p {
  margin: 0;
}

.at-footer a {
  color: var(--at-stone);
}

.at-footer a:hover {
  color: var(--at-gold);
}

.at-footer .at-wordmark {
  font-family: var(--at-serif);
  font-size: 20px;
  letter-spacing: 0.08em;
  color: var(--at-cream);
}

.at-footer .at-wordmark-sub {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--at-gold);
}

/* abgesetzte Sektionen (dunkelbraunes Band mit Goldlinien) */
.at-band {
  background: var(--at-band);
  border-top: 1px solid rgba(230, 154, 85, 0.18);
  border-bottom: 1px solid rgba(230, 154, 85, 0.18);
}

/* Bildhöhen – doppelte Klasse nötig, damit Elementors ".elementor img
   { height: auto }" (lädt später, gleiche Spezifität) nicht gewinnt */
.elementor .at-img-460 img,
.e-con .at-img-460 img {
  width: 100%;
  height: 460px;
  object-fit: cover;
}

.elementor .at-img-190 img,
.e-con .at-img-190 img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

/* Event-Raster: 3 Karten pro Reihe, alle Reihen gleich hoch */
.at-events-grid.e-con {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 28px;
}

/* 2×2-Inforaster im Kontaktbereich */
.at-grid-2.e-con {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

/* Event-Karten – ganze Kachel klickbar, dezenter Hover */
.at-card.e-con {
  border: 1px solid rgba(230, 154, 85, 0.18);
  background: var(--at-band);
  padding-bottom: 24px;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s;
}

a.at-card.e-con:hover {
  border-color: var(--at-gold);
  transform: translateY(-3px);
  color: inherit;
}

a.at-card .elementor-heading-title,
a.at-card .elementor-icon-list-text {
  color: var(--at-cream);
}

.at-card-cta.e-con {
  border: 1px solid rgba(230, 154, 85, 0.35);
  background: rgba(230, 154, 85, 0.05);
  padding: 32px;
}

/* Footer-Border */
.at-footer.e-con {
  border-top: 1px solid rgba(230, 154, 85, 0.18);
}

@media (max-width: 1024px) {
  .at-events-grid.e-con {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .at-events-grid.e-con,
  .at-grid-2.e-con {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Topbar – Layout/Border kommen aus den Elementor-Einstellungen
   ========================================================================== */
.at-topbar p {
  margin: 0;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--at-sand-light);
}

/* ==========================================================================
   Buttons – Feinschliff (keine Radien/Schatten, exakte Maße)
   ========================================================================== */
.at-btn-solid .elementor-button,
.at-btn-outline .elementor-button,
.at-btn-gold-outline .elementor-button {
  box-shadow: none;
  line-height: 1.2;
}

.at-btn-solid .elementor-button:focus,
.at-btn-outline .elementor-button:focus,
.at-btn-gold-outline .elementor-button:focus {
  background: inherit;
  color: inherit;
}

/* Kontakt: Telefon-Button ist im Design etwas größer */
#contact .at-btn-solid .elementor-button {
  padding: 16px 36px;
  font-size: 14px;
}

/* Karte streckt sich über die volle Spaltenhöhe */
#contact .elementor-widget-at_map,
#contact .elementor-widget-at_map .at-map {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   Unterseiten (WordPress-Inhaltsseiten)
   ========================================================================== */
/* Nur die eigentliche Inhalts-Spalte begrenzen – NICHT die Event-Karten
   (die ebenfalls <article> sind) auf Elementor-Canvas-Seiten. */
.page .site-main,
.page main,
body.page article:not(.at-event-card):not([class*="elementor"]) {
  max-width: 860px;
  margin-inline: auto;
  padding: 56px 20px 80px;
}

/* Bilder nie über ihre native Auflösung hochskalieren (sonst verpixelt):
   zentriert, mit Goldrahmen, maximal 600px breit */
.at-page-img {
  text-align: center;
  margin: 8px 0 28px;
}

.at-page-img img {
  width: auto;
  max-width: min(100%, 600px);
  height: auto;
  border: 1px solid rgba(230, 154, 85, 0.3);
  box-shadow: -18px 18px 0 rgba(230, 154, 85, 0.07);
}

.at-page-cta {
  display: inline-block;
  background: var(--at-gold);
  color: var(--at-ink) !important;
  padding: 14px 28px;
  font-family: var(--at-sans);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 8px 0 16px;
  transition: background 0.2s;
}

.at-page-cta:hover {
  background: var(--at-gold-light);
}

/* ==========================================================================
   Ninja Forms – Anfrage-Karte im Site-Design
   ========================================================================== */

/* Formular als Karte */
.nf-form-cont {
  border: 1px solid rgba(230, 154, 85, 0.25);
  background: rgba(230, 154, 85, 0.04);
  padding: 36px 32px;
  margin-top: 8px;
}

/* Pflichtfeld-Hinweis */
.nf-form-cont .nf-form-fields-required {
  font-size: 13px;
  color: var(--at-stone);
  margin-bottom: 24px;
}

/* Zwei-Spalten-Raster; Nachricht und Button über volle Breite.
   Achtung: NF legt zwischen .nf-form-content und den Feld-Containern
   einen klassenlosen Wrapper an – das Grid gehört auf diesen Wrapper. */
.nf-form-cont .nf-form-content {
  padding: 0;
  max-width: none;
}

.nf-form-cont nf-fields-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 28px;
}

/* nf-field durchreichen, damit die Feld-Container die Grid-Items sind */
.nf-form-cont nf-field {
  display: contents;
}

.nf-form-cont .textarea-container,
.nf-form-cont .submit-container,
.nf-form-cont .html-container,
.nf-form-cont .hr-container {
  grid-column: 1 / -1;
}

/* Feld-Container zurücksetzen (NF-Standardabstände raus) */
.nf-form-cont .nf-field-container {
  margin-bottom: 0;
}

/* Label ÜBER dem Feld */
.nf-form-cont .field-wrap {
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
}

.nf-form-cont .nf-field-label {
  order: -1;
  width: auto !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
  position: static !important;
}

.nf-form-cont .nf-field-label label,
.nf-form-cont .nf-field-label .nf-label-span {
  color: var(--at-gold);
  font-family: var(--at-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nf-form-cont .nf-field-label .ninja-forms-req-symbol {
  color: var(--at-gold-light);
}

.nf-form-cont .nf-field-element {
  width: 100%;
}

/* Eingabefelder: volle Breite, ruhige Optik */
.nf-form-cont input[type="text"],
.nf-form-cont input[type="email"],
.nf-form-cont input[type="tel"],
.nf-form-cont input[type="number"],
.nf-form-cont input[type="date"],
.nf-form-cont select,
.nf-form-cont textarea {
  width: 100%;
  background: #100d0a;
  border: 1px solid rgba(230, 154, 85, 0.3);
  color: var(--at-cream);
  padding: 13px 16px;
  border-radius: 0;
  font-family: var(--at-body-font);
  font-size: 16px;
  line-height: 1.4;
  height: auto;
  transition: border-color 0.2s, background 0.2s;
}

.nf-form-cont textarea {
  min-height: 140px;
  resize: vertical;
}

.nf-form-cont select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23c98b4e' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.nf-form-cont input::placeholder,
.nf-form-cont textarea::placeholder {
  color: var(--at-stone);
}

.nf-form-cont input:focus,
.nf-form-cont select:focus,
.nf-form-cont textarea:focus {
  border-color: var(--at-gold);
  background: #171310;
  outline: none;
  box-shadow: 0 0 0 1px var(--at-gold);
}

/* Datumsfeld: Kalender-Icon aufhellen */
.nf-form-cont input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.7) sepia(0.4) saturate(3) hue-rotate(-15deg);
  cursor: pointer;
}

/* Senden-Button */
.nf-form-cont input[type="button"],
.nf-form-cont input[type="submit"] {
  width: auto;
  justify-self: start;
  background: var(--at-gold);
  color: var(--at-ink);
  border: 1px solid var(--at-gold);
  border-radius: 0;
  padding: 14px 32px;
  font-family: var(--at-sans);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.nf-form-cont input[type="button"]:hover,
.nf-form-cont input[type="submit"]:hover {
  background: var(--at-gold-light);
}

/* Fehler & Erfolg */
.nf-form-cont .nf-error-msg,
.nf-form-cont .nf-error-required-error {
  color: #e58989;
  font-size: 13px;
  margin-top: 6px;
}

.nf-form-cont .nf-error .ninja-forms-field {
  border-color: #b35555;
}

.nf-response-msg {
  color: var(--at-gold);
  font-size: 17px;
  border: 1px solid rgba(230, 154, 85, 0.35);
  background: rgba(230, 154, 85, 0.06);
  padding: 20px 24px;
}

/* Mobile: eine Spalte, kompaktere Karte */
@media (max-width: 640px) {
  .nf-form-cont {
    padding: 24px 18px;
  }

  /* Das Grid liegt auf nf-fields-wrap (nicht auf .nf-form-content) */
  .nf-form-cont nf-fields-wrap {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* ==========================================================================
   Responsive – Tablet & Mobile
   ========================================================================== */
@media (max-width: 1024px) {
  /* Sektions-Innenabstände reduzieren */
  .e-con.e-parent > .e-con.e-child,
  .e-con.e-parent {
    --at-pad-x: 32px;
  }

  .at-h1 .elementor-heading-title {
    font-size: 52px;
  }
}

@media (max-width: 767px) {
  .at-h1 .elementor-heading-title {
    font-size: 40px;
  }

  .at-h2 .elementor-heading-title {
    font-size: 30px;
  }

  .at-num .elementor-heading-title {
    font-size: 44px;
  }

  /* Topbar: Öffnungszeiten werden mobil über das Elementor-Setting
     „Auf Mobilgerät ausblenden" am Icon-List-Widget versteckt. */

  /* Footer: gestapelt, linksbündig */
  .at-footer.e-con {
    flex-direction: column;
    gap: 18px;
  }

  /* Bewertungen: Pfeile unter dem Text statt daneben */
  .at-reviews__stage {
    flex-wrap: wrap;
  }

  .at-reviews__slides {
    order: -1;
    flex-basis: 100%;
  }

  .at-reviews__arrow {
    margin: 0 auto;
  }

  /* Galerie: 2 Spalten + kleinere Kacheln auf Mobile */
  .at-gallery .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .at-gallery img {
    height: 160px;
  }
}

@media (max-width: 1024px) and (min-width: 768px) {
  /* Galerie: 3 Spalten auf Tablet */
  .at-gallery .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Flexbox-Overflow-Schutz: verschachtelte Elementor-Flex-Container dürfen
   unter ihre Inhaltsbreite schrumpfen (verhindert 1–7px Überstände an
   Breakpoint-Grenzen, z. B. iPad 768px). */
.elementor .e-con.e-child {
  min-width: 0;
  max-width: 100%;
}

/* Nur min-width:0 (Overflow-Schutz) – KEIN max-width, sonst würde Elementors
   Boxed-Content-Breite (--content-width, 1400px) überschrieben. */
.elementor .e-con > .e-con-inner {
  min-width: 0;
}

/* ==========================================================================
   Sektions-Hintergründe full-width, Inhalt im Container:
   Wird über die Elementor-Einstellungen gelöst (Site Settings → Layout →
   Content-Breite = 1400px; einzelne „Full-Width“-Sektionen auf „Boxed“).
   Kein CSS-Cap mehr nötig – Boxed-Container liefern full-width Hintergrund
   mit zentriertem Inhalt von Haus aus.
   ========================================================================== */

/* ==========================================================================
   Event-Detailseite (Template single-at_event.php)
   ========================================================================== */
.at-event-page {
  max-width: 1400px;
  margin-inline: auto;
  padding: 44px 48px 88px;
}

@media (max-width: 767px) {
  .at-event-page {
    padding-inline: 20px;
  }
}

.at-event-page__header {
  text-align: center;
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.at-event-page__title {
  font-size: 42px;
  line-height: 1.15;
  margin: 0;
}

/* Volle Grid-Breite – die Lesebreite des Fließtexts regelt das Plugin
   (.at-event-single__content, 860px). */
.at-event-page__content {
  max-width: none;
}

/* Desktop: ausgewogener Zweispalter – das Bild füllt die linke Spalte in
   voller Höhe der rechten Inhalte (kein Leerraum), rechts Termin + Text + CTA. */
@media (min-width: 1025px) {
  .at-event-page__content .at-event-single {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 56px;
    align-items: start;
  }

  .at-event-page__content .at-event-single__media {
    grid-column: 2;
    grid-row: 1 / span 3;
    height: 100%;
    max-height: 760px;
    margin: 0;
  }

  .at-event-page__content .at-event-single__media img {
    width: 100%;
    height: 100%;
    max-height: 760px;
    object-fit: cover;
  }

  .at-event-page__content .at-event-single__media.is-portrait img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 760px;
    margin-inline: auto;
    object-fit: contain;
  }

  .at-event-page__content .at-event-hero,
  .at-event-page__content .at-event-single__content,
  .at-event-page__content .at-event-single__cta {
    grid-column: 1;
  }

  .at-event-page__content .at-event-single__back {
    grid-column: 1 / -1;
  }
}


@media (max-width: 767px) {
  .at-event-page {
    padding: 32px 20px 56px;
  }

  .at-event-page__title {
    font-size: 30px;
  }
}
