/* ============================
  (Light mode)
   ============================ */
:root {
  color-scheme: light dark;
  --ae-text-strong: #7a7a7a; /* mid grey in light mode */
  --ae-header-height: 140px;
      

  --ae-bg: #ebebeb;
  --ae-surface: #0df718;
  --ae-surface-soft: #d37a1a;
  --ae-text: #7a7a7a;
  --ae-muted: #7a7a7a;
  --ae-border-subtle: rgba(3, 51, 109, 0.08);

  --ae-header-bg: #ebebeb;
  --ae-header-border: none; 
  /*--ae-header-shadow: 0 12px 35px rgba(12, 17, 23, 0.04);*/

  --ae-accent: #ff0088;
  --ae-accent-soft: rgba(223, 210, 34, 0.12);
  --ae-accent-gradient: linear-gradient(90deg, #ff4b82, #d6c41d);

  --ae-tagline-color: #d37a1a; 

  --ae-radius-card: 1.1rem;
}

/* ============================
   (Dark mode)
   ============================ */
   
@media (prefers-color-scheme: dark) {
  :root {
    --ae-bg: #111319;
    --ae-surface: #151827;
    --ae-surface-soft: #d8a36a;

    /* Mid greys for text */
    --ae-text: #7a7a7a;           /* main copy / headings */
    --ae-muted: #7a7a7a;         /* slightly darker for “muted” text */

    --ae-text-strong: #7a7a7a;
    
    --ae-border-subtle: rgba(255, 255, 255, 0.06);

    --ae-header-bg: #111319;
    --ae-header-border: none;

    --ae-accent: #ff0088;
    --ae-accent-soft: rgba(121, 25, 76, 0.5);
    --ae-accent-gradient: linear-gradient(90deg, #fa2872ec, #fd3aa2, #ffa42e);

    --ae-tagline-color: #d8a36a; 
  }
}


/* ============================
   LAYOUT
   - Main area
   ============================ */



body {
  margin: 0;
  font-family: "Lexend", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--ae-bg);
  color: var(--ae-text);

  /* make footer stick to bottom */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}


/* Generic container reused for header + footer + main */
.shell {
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: 1.5rem;
}

/* main content should fill the space between header and footer */
main.page-main {
  flex: 1;
  min-height: auto; /* override the old min-height */
}


/* ============================
   HEADER
   - Layout
   ============================ */
.ae-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 72px;
  backdrop-filter: none;
  background-color: var(--ae-header-bg);
  border-bottom: none;                
  box-shadow: none; /*var(--ae-header-shadow);*/
}

.ae-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-inline: 1.5rem;
  min-height: var(--ae-header-height); /* gesteuert über :root */
  flex-wrap: nowrap;
}


/* Logo / Wordmark */

.ae-logo-link {
  text-decoration: none;
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* textual wordmark (site name) */
/* LOGO / SITENAME  --------------------------------------------------- */
/* === Brand / site name =================================== */

.ae-brand-text {
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  /* about 3× bigger than before */
  font-size: clamp(1.3rem, 1.1vw + 1.1rem, 1.8rem);
}

/* === Header nav colours ================================== */

.site-header a,
.site-header a:visited {
  color: var(--ae-text, #7a7a7a);   /* mid grey */
  text-decoration: none;
}

/* Keep brand title color fixed, even inside the site header */
.site-header .ae-brand-text:hover,
.site-header .ae-brand-text:focus-visible {
  color: #7a7a7a;
}



/* footer was already good, but just to mirror the behaviour: */
.site-footer a,
.site-footer a:visited {
  color: var(--ae-text, #7a7a7a);
}

/*.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--ae-accent, #ffc14f);
}*/

/* Logo / wordmark text – keep completely static */

.ae-brand-title {
  font-size: 3.2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  color: var(--ae-text-strong);
  /* no animations, no movement */
}

/* Do NOT change the logo text on hover/focus */
.ae-logo-link:hover .ae-brand-title,
.ae-logo-link:focus .ae-brand-title {
  color: var(--ae-text-strong);
  background: transparent;
  transform: none;
  text-shadow: none;
  box-shadow: none;
}


/* dark-mode color for the wordmark */
@media (prefers-color-scheme: dark) {
  .ae-brand-title {
    color: #7a7a7a;                /* light grey on dark background */
    background-color: rgba(17, 19, 25, 0.9);
  }
}

/* ============================
   HEADER
   - Navigation
   ============================ */

.ae-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.ae-nav-item {
  position: relative;
}

.ae-nav-link {
  background: none;
  border: 0;
  padding: 0 1.5rem 0 1.5rem;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  color: #7a7a7a;
}

.ae-nav-link:visited {
  color: var(--ae-text-strong);     /* no purple visited state */
}

.ae-nav-link:hover,
.ae-nav-link:focus {
  /*color: var(--ae-accent);*/
  text-shadow: none;
  transform: none;
}

/* optional: „aktiver“ Menüpunkt, falls du ihn im Template markierst */
.ae-nav-link--active {
  color: var(--ae-text);
  font-weight: 500;
}

/* Nav item with children (the <details> element) */
.ae-nav-item--has-children {
  position: relative;
  display: inline-block;
}

/* Remove default arrow marker */
.ae-nav-item--has-children > summary::-webkit-details-marker {
  display: none;
}
.ae-nav-item--has-children > summary {
  list-style: none;
  cursor: pointer;
}

/* Caret für Punkte mit Untermenü */

.ae-nav-item--has-children .ae-nav-caret {
  font-size: 0.7rem;
  transform: translateY(1px);
  margin-left: 0.15rem;
}
/* Dropdown (graues Panel) */

.ae-dropdown {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 0;
  padding: 0.6rem;
  border-radius: 0.9rem;
  background: var(--ae-surface);
  box-shadow: 0 18px 40px rgba(12, 17, 23, 0.18);
  border: 1px solid var(--ae-border-subtle);
  min-width: 220px;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
  z-index: 50;
}

/* Show dropdown when <details open> – i.e., after click */
.ae-nav-item--has-children[open] .ae-dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Anzeigen bei Hover / Fokus, ohne JS */

.ae-nav-item--has-children:hover .ae-dropdown,
.ae-nav-item--has-children:focus-within .ae-dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.ae-dropdown-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ae-dropdown-link {
  display: block;
  padding: 0.45rem 0.6rem;
  border-radius: 0.6rem;
  text-decoration: none;
  color: var(--ae-text);
  font-size: 0.85rem;
  line-height: 1.4;
  position: relative;
}

/* kleiner magenta Punkt links – „Icon“, aber generisch */

.ae-dropdown-link::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--ae-accent);
  margin-right: 0.4rem;
  transform: translateY(-1px);
}

.ae-dropdown-link:hover {
  background: var(--ae-surface-soft);
}

/* ============================
   HEADER
   - CTA Button
   ============================ */

.ae-cta-btn {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  border: none;
  text-decoration: none;
  color: var(--ae-text);
  background: var(--ae-surface-soft);
  box-shadow: 0 0 0 1px var(--ae-border-subtle);
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

.ae-cta-btn:hover,
.ae-cta-btn:focus {
  background: none;/*var(--ae-accent);*/
  /*color: #7a7a7a;*/
  box-shadow: none; /*0 0 0 1px var(--ae-accent-soft);*/
}

/* Header CTA: text only, like the other nav links */
.ae-cta-btn {
  padding: 0;                 /* no pill padding */
  border-radius: 0;           /* no rounded box */
  border: 0;
  background: none;           /* transparent background */
  box-shadow: none;
  color: #7a7a7a;  /* same base colour as .ae-nav-link */
}

/* Hover: just change text colour to accent, no box */
.ae-cta-btn:hover,
.ae-cta-btn:focus {
  background: none;
  box-shadow: none;
  color: var(--ae-accent);    /* magenta, like nav links */
}

/* ============================
   LANDING PAGE
   ============================ */

.ae-landing {
  min-height: calc(100vh - var(--ae-header-height) - 6rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;                    
  padding-top: calc(27vh - var(--ae-header-height)); 
}

/* Center the text block itself, keep its text left-aligned */
.ae-landing-title,
.ae-landing-tagline {
  max-width: clamp(16ch, 40vw, 24ch);  /* you can keep or drop this */
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

.ae-landing-title {
  margin: 0;
  font-family: "Lexend", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: clamp(4.2rem, 10vw, 7rem);
  line-height: 1.05;
  letter-spacing: 0.03em;
  text-transform: none;
}

/* two separate lines, both left aligned */
.ae-landing-line {
  display: block;
  text-align: left;
}

/* OFF + magenta strike-through */
.ae-landing-off-wrapper {
  position: relative;
  display: inline-block;
  padding-bottom: 0.1em; /* little space under the line */
}

.ae-landing-off {
  position: relative;
  z-index: 1;
}

.ae-landing-strike {
  position: absolute;
  left: -0.12em;
  right: -0.12em;
  top: 45%;          /* move the line above the letters */
  height: 8px;           /* thicker line */
  background: var(--ae-accent);
  transform: translateY(-45%);
  z-index: 2;   
}    

/* small text under the title */
.ae-landing-tagline {
  max-width: clamp(16ch, 40vw, 24ch); /* optional */
  margin-left: 0;
  margin-right: 0;
  text-align: left;


  /* typography */
  font-size: 1.55rem;
  font-family: "Georgia", "Times New Roman", serif;

  /* color comes from CSS variable we define below */
  color: var(--ae-tagline-color);
}

/* ============================
   LANDING GALLERY
   ============================ */

.ae-landing-gallery {
  margin-top: 3rem;

  width: 100vw;                 /* use full viewport width */
  max-width: 1600px;            /* optional hard cap */
  margin-left: 50%;
  transform: translateX(-50%);  /* center relative to viewport */

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}


.ae-landing-frame {
  aspect-ratio: 1 / 1;                         /* keeps a nice square */
  border-radius: 1.5rem;
  border: 1px solid var(--ae-border-subtle);
  background: var(--ae-surface-soft);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ae-landing-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;                           /* image fills the frame */
  display: block;
}


/* Logo images –  */

.ae-logo-img,
.ae-logo-img--main,
.ae-logo-img--mark {
  display: none;
}

/* Logo images 
.ae-logo-img {
  display: none;
}

.ae-logo-img--main {
  display: none;
  height: 420px;         
  width: auto;
  margin-right: 0.75rem; 
}

.ae-logo-img--mark {
  display: none;
}*/



/* ============================
   FOOTER
   ============================ */

.site-footer {
  border-top: none;                
  margin-top: 4rem;
  padding: 1.5rem 0 2.25rem;
  font-size: 0.8rem;
}


.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  color: var(--ae-muted);
}

/* FOOTER NAV --------------------------------------------------------- */

.footer-nav a {
  font-size: 0.8rem;
  color: var(--ae-text-strong);     /* grey */
  text-decoration: none;
  margin-left: 1.5rem;
}

.footer-nav a:visited {
  color: var(--ae-text-strong);     /* keep grey after click */
}

/*.footer-nav a:hover,
.footer-nav a:focus { */
  /*color: var(--ae-accent);          /* magenta on hover 
} */

/* Smooth colour change for header + footer links */
.ae-nav-link,
.ae-cta-btn,
.footer-nav a {
  transition: color 0.2s ease;
}


/* ============================
   GLOBAL LINKS
   ============================ */

a {
  color: inherit;
  text-decoration: none;
  /* no global color animation */
}

a:visited {
  color: inherit;
}

a:hover,
a:focus {
  /* no global color change – just keep it simple */
  text-decoration: none;
}


/* Keep the brand title completely static (no hover color, no animation) */
.site-header .ae-logo-link,
.site-header .ae-logo-link:visited {
  color: var(--ae-text-strong);
  text-decoration: none;
  transition: none;          /* no color animation */
}

.site-header .ae-logo-link:hover,
.site-header .ae-logo-link:focus {
  color: var(--ae-text-strong);  /* same colour on hover */
  text-decoration: none;
}


/* In page content, keep link colour on hover (no colour change) */
.page-main a:hover,
.page-main a:focus {
  color: inherit;      /* stay the same as normal text/heading colour */
  text-decoration: none;
}

/* Basic Mobile-Fallback: Nav schrumpft, Dropdowns deaktiviert */

@media (max-width: 720px) {
  /* Header stacks: brand on top, nav below */
  .ae-header-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.75rem;
    padding-block: 0.75rem 0.5rem;
  }

  /* logo + brand title stay on the left */
  .ae-logo-link {
    margin-right: 0;
  }

  /* Nav becomes a vertical/wrapping list under the brand */
  .ae-nav {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.25rem 1.5rem;
    font-size: 0.9rem;
  }

  .ae-nav-link {
    padding: 0.25rem 0;   /* kill big side padding that caused overflow */
  }

  /* CTA ("Sign in") aligns with the menu */
  .ae-cta-btn {
    align-self: flex-start;
    margin-top: 0.25rem;
  }

  /* keep dropdowns simple on mobile for now */
  .ae-dropdown {
    display: none;
  }

  .ae-landing-gallery {
    grid-template-columns: 1fr;
    max-width: 100%; 
  }
  
}

