/* ============================================================
   FOTOTHEK.CH – Hauptstylesheet
   Zeichensatz: ISO-8859-1 kompatibel (keine Unicode-Sonderzeichen)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Source+Sans+3:wght@300;400;500;600&display=swap');

/* ---- CSS-Variablen ---- */
:root {
  --color-bg:        #ffffff;
  --color-text:      #1a1a1a;
  --color-muted:     #666666;
  --color-accent:    #b8860b;       /* Goldton – Fotografie */
  --color-accent2:   #1c1c1c;
  --color-border:    #e0e0e0;
  --color-nav-bg:    #0f0f0f;
  --color-nav-text:  #f0f0f0;
  --font-display:    'Outfit', 'Helvetica Neue', Arial, sans-serif;
  --font-body:       'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
  --max-width:       1240px;
  --nav-height:      70px;
  --transition:      0.25s ease;
}

/* ---- Reset & Basis ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: var(--color-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent2); }

/* ---- Typographie ---- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: 1.25;
  color: var(--color-text);
}
h1 { font-size: clamp(2rem,   4vw, 3.2rem); font-weight: 700; margin-bottom: 1rem; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 600; margin-bottom: .8rem; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 600; margin-bottom: .6rem; }
h4 { font-size: 1.15rem; font-weight: 600; margin-bottom: .5rem; }
h5 { font-size: 1.15rem; font-weight: 600; margin-bottom: .5rem; }
p  { margin-bottom: 1.2rem; }

/* ---- Layout-Helfer ---- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section    { padding: 72px 0; }
.section--sm{ padding: 48px 0; }

/* ================================================================
   NAVIGATION
   ================================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-nav-bg);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.45);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav-logo img {
  height: 44px;
  width: auto;
}
.nav-logo span {
  color: var(--color-nav-text);
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: .04em;
}

/* Hauptnavigation */
.nav-menu {
  list-style: none;
  display: flex;
  gap: 4px;
}
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  display: block;
  color: var(--color-nav-text);
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 3px;
  transition: background var(--transition), color var(--transition);
}
.nav-menu > li > a:hover,
.nav-menu > li.active > a {
  background: var(--color-accent);
  color: #fff;
}

/* Dropdown */
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;          /* direkt anschliessend – keine Lücke */
  left: 0;
  background: #1a1a1a;
  min-width: 220px;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
  list-style: none;
  overflow: hidden;
  z-index: 999;
  padding-top: 6px;   /* optischer Abstand nach innen statt aussen */
}
/* Unsichtbare Brücke: verhindert, dass die Maus beim Uebergang
   das <li> verlaesst und das Dropdown sofort schliesst          */
.nav-menu > li::after {
  content: '';
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 8px;        /* so gross wie der ehemalige Abstand */
}
.nav-menu > li:hover .nav-dropdown { display: block; }
.nav-dropdown li a {
  display: block;
  color: #ddd;
  font-size: .88rem;
  padding: 11px 18px;
  transition: background var(--transition), color var(--transition);
}
.nav-dropdown li a:hover { background: var(--color-accent); color: #fff; }

/* Burger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.nav-burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-nav-text);
  transition: transform var(--transition);
}

/* ================================================================
   SLIDER / HERO
   ================================================================ */
.slider {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--nav-height));
  min-height: 420px;
  overflow: hidden;
  background: #111;
}
.slider-track {
  display: flex;
  height: 100%;
  transition: transform .7s cubic-bezier(.77,0,.18,1);
}
.slide {
  flex-shrink: 0;
  width: 100%;
  min-width: 100%;   /* relativ zum slider-Container, nicht zum track */
  height: 100%;
  position: relative;
  overflow: hidden;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: .82;
}
.slide-caption {
  position: absolute;
  bottom: 12%;
  left: 0;
  right: 0;
  text-align: center;
  color: #fff;
  padding: 0 24px;
}
.slide-caption h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,.6);
}
.slide-caption p {
  font-size: clamp(.95rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.88);
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
  margin-bottom: 0;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 10;
  transition: background var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.slider-btn:hover { background: var(--color-accent); border-color: var(--color-accent); }
.slider-btn--prev { left: 20px; }
.slider-btn--next { right: 20px; }

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.slider-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.slider-dot.active { background: var(--color-accent); transform: scale(1.3); }

/* ================================================================
   BLOG-RASTER (Startseite – 3 Spalten)
   ================================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.blog-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}
.blog-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.1); transform: translateY(-3px); }
.blog-card__img { aspect-ratio: 16/10; overflow: hidden; }
.blog-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.blog-card:hover .blog-card__img img { transform: scale(1.04); }
.blog-card__body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-card__cat {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 8px;
}
.blog-card__body h3 { font-size: 1.2rem; margin-bottom: 8px; }
.blog-card__body p  { font-size: .95rem; color: var(--color-muted); flex: 1; margin-bottom: 16px; }
.blog-card__meta { font-size: .82rem; color: var(--color-muted); margin-bottom: 0; }
.btn {
  display: inline-block;
  padding: 9px 22px;
  background: var(--color-accent);
  color: #fff;
  border-radius: 3px;
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .04em;
  transition: background var(--transition);
}
.btn:hover { background: #9a6e09; color: #fff; }
.btn--outline {
  background: transparent;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
}
.btn--outline:hover { background: var(--color-accent); color: #fff; }

/* ================================================================
   BLOG-DETAIL (einspaltig)
   ================================================================ */
.article-wrap { max-width: 780px; margin: 0 auto; padding: 60px 24px; }
.article-wrap h1 { margin-bottom: .5rem; }
.article-meta { font-size: .88rem; color: var(--color-muted); margin-bottom: 2rem; border-bottom: 1px solid var(--color-border); padding-bottom: 1.2rem; }
.article-img { border-radius: 6px; overflow: hidden; margin-bottom: 2rem; aspect-ratio: 16/9; }
.article-img img { width: 100%; height: 100%; object-fit: cover; }
.article-body h2 { margin-top: 2rem; }
.article-body h3 { margin-top: 1.5rem; }
.article-body h4, .article-body h5 { margin-top: 1.2rem; }

/* ================================================================
   UNTERSEITE ARCHITEKTURFOTOGRAF
   ================================================================ */
.page-hero {
  position: relative;
  height: 60vh;
  min-height: 320px;
  overflow: hidden;
  background: #111;
}
.page-hero img { width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.page-hero__title {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 40px;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  color: #fff;
}
.page-hero__title h1 { color: #fff; }

.content-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 56px;
  padding: 60px 0;
}
.sidebar { border-left: 1px solid var(--color-border); padding-left: 36px; }
.sidebar-box { background: #f7f7f7; border-radius: 6px; padding: 24px; margin-bottom: 24px; }
.sidebar-box h5 { color: var(--color-text); margin-bottom: 12px; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.sidebar-nav { list-style: none; }
.sidebar-nav li + li { border-top: 1px solid var(--color-border); }
.sidebar-nav a { display: block; padding: 9px 0; font-size: .92rem; color: var(--color-text); }
.sidebar-nav a:hover { color: var(--color-accent); }

/* ================================================================
   KUNDENARCHIV
   ================================================================ */
.archive-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter-btn {
  padding: 7px 18px;
  border: 1px solid var(--color-border);
  background: #fff;
  border-radius: 20px;
  font-size: .85rem;
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }

.archive-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.archive-item {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.archive-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.archive-item:hover img { transform: scale(1.06); }
.archive-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  opacity: 0;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  transition: opacity var(--transition);
}
.archive-item:hover .archive-item__overlay { opacity: 1; }
.archive-item__overlay span { color: #fff; font-size: .88rem; font-weight: 500; }

/* ================================================================
   SECTION-TRENNER / INTRO
   ================================================================ */
.intro-text { max-width: 740px; margin: 0 auto; text-align: center; margin-bottom: 56px; }
.intro-text h2 { margin-bottom: 1rem; }
.intro-text p { color: var(--color-muted); font-size: 1.05rem; }
.divider { height: 1px; background: var(--color-border); margin: 0; }

/* ================================================================
   KONTAKT-BOX (in Sidebar + Unterseiten)
   ================================================================ */
.contact-box {
  background: var(--color-accent);
  color: #fff;
  border-radius: 6px;
  padding: 28px 24px;
}
.contact-box h5 { color: #fff; }
.contact-box a { color: #fff; text-decoration: underline; }
.contact-box p { margin-bottom: .5rem; font-size: .95rem; }

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  background: var(--color-nav-bg);
  color: #aaa;
  padding: 56px 0 32px;
  font-size: .9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-grid h5 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.footer-grid p  { line-height: 1.8; }
.footer-links   { list-style: none; }
.footer-links li + li { margin-top: 8px; }
.footer-links a { color: #aaa; }
.footer-links a:hover { color: var(--color-accent); }
.footer-bottom {
  border-top: 1px solid #2a2a2a;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .blog-grid       { grid-template-columns: repeat(2, 1fr); }
  .archive-grid    { grid-template-columns: repeat(3, 1fr); }
  .content-grid    { grid-template-columns: 1fr; }
  .sidebar         { border-left: none; padding-left: 0; border-top: 1px solid var(--color-border); padding-top: 36px; }
  .footer-grid     { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-menu        { display: none; flex-direction: column; position: absolute; top: var(--nav-height); left: 0; right: 0; background: var(--color-nav-bg); padding: 16px; gap: 2px; }
  .nav-menu.open   { display: flex; }
  .nav-dropdown    { position: static; box-shadow: none; background: #252525; }
  .nav-menu > li:hover .nav-dropdown { display: none; }
  .nav-menu > li.open .nav-dropdown  { display: block; }
  .nav-burger      { display: flex; }
  .blog-grid       { grid-template-columns: 1fr; }
  .archive-grid    { grid-template-columns: repeat(2, 1fr); }
  .slider          { height: 70vw; min-height: 280px; }
  .footer-grid     { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 480px) {
  .archive-grid    { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .slider          { height: 80vw; }
  .article-wrap    { padding: 36px 16px; }
}
