/**
 * Crumstadt im Blick – Theme-Stylesheet
 *
 * Einbindung in Contao 5.7:
 * Backend > Layout > "Externe Style Sheets" ODER als Datei in
 * files/theme/css/crumstadt.css ablegen und im Seiten-Layout unter
 * "CSS-Dateien" einbinden.
 *
 * Hinweis: Alle Regeln sind unverändert aus der Vorlage übernommen,
 * lediglich strukturiert und kommentiert. Die Selektoren (.hero, .product,
 * .shirts usw.) müssen 1:1 in den zugehörigen Twig-Templates verwendet
 * werden (siehe templates/content_element/*.html.twig).
 */

/* ==========================================================================
   1. Grundlagen / CSS-Variablen
   ========================================================================== */
:root {
  --bg: #f4f0e8;
  --paper: #fffdf8;
  --ink: #1f2420;
  --muted: #6c726b;
  --line: #d9d2c4;
  --accent: #8d2f25;
  --accent-dark: #642219;
  --forest: #35443a;
  --sand: #d8c4a2;
  --shadow: 0 18px 60px rgba(31, 36, 32, .10);
  --radius: 22px;
  --max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Achtung: body-Styles hier sind global. In Contao ggf. auf einen
   Wrapper (z.B. .crumstadt-page) scopen, falls das Layout mit anderen
   Seiten/Templates geteilt wird, um Konflikte zu vermeiden. */
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(calc(100% - 36px), var(--max));
  margin-inline: auto;
}

/* ==========================================================================
   2. Typografie / wiederkehrende Textbausteine
   ========================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .78rem;
  font-weight: 800;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.02;
  margin: 0;
}

h1 { font-size: clamp(3.4rem, 9vw, 7.5rem); max-width: 10ch; }
h2 { font-size: clamp(2.3rem, 5vw, 4.7rem); max-width: 14ch; }
h3 { font-size: clamp(1.5rem, 2vw, 2rem); }

p { margin: 0; }

.lead {
  font-size: clamp(1.08rem, 1.7vw, 1.34rem);
  color: var(--muted);
  max-width: 690px;
}

/* ==========================================================================
   3. Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: .9rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--ink);
  font-weight: 800;
  transition: .22s ease;
  cursor: pointer;
  background: transparent;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--ink);
  color: white;
  box-shadow: 0 10px 30px rgba(31, 36, 32, .16);
}

.btn-primary:hover { background: var(--accent); }

.btn-light {
  color: white;
  border-color: rgba(255, 255, 255, .6);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, .08);
}

/* ==========================================================================
   4. Header / Navigation
   Passend zu: templates/layout/crumstadt_layout.html.twig
   ========================================================================== */
.site-header {
  position: fixed;
  width: 100%;
  height: 80px;
  top: 0;
  z-index: 50;
  background: rgba(244, 240, 232, .86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(217, 210, 196, .65);
}

.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-weight: 900;
  letter-spacing: .03em;
}

.brand-mark {
  height: 65px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  font-weight: 700;
  font-size: .94rem;
}

.nav-links a:not(.btn) { opacity: .76; }
.nav-links a:hover { opacity: 1; }

.menu-toggle { display: none; }

/* ==========================================================================
   5. Hero
   Passend zu: templates/content_element/ce_hero.html.twig
   ========================================================================== */
.hero {
  position: relative;
  min-height: calc(100vh - 74px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: white;
  background:
    linear-gradient(90deg, rgba(23, 28, 24, .82) 0%, rgba(23, 28, 24, .44) 47%, rgba(23, 28, 24, .13) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .12), rgba(0, 0, 0, .55)),
    radial-gradient(circle at 75% 30%, #bd9a6e 0 18%, transparent 19%),
    linear-gradient(135deg, #647466 0 32%, #9f865f 32% 46%, #75684e 46% 58%, #384b3e 58% 100%);
	background-image: url(/files/bilder/tuerme.jpg);
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center center;
	height: 720px;
	min-height: 0;
	max-height: calc(100vh - 74px);
	padding-top: 0;
}

/* Platzhalter-Hintergrund: sobald ein echtes Hero-Bild über Contao
   (z.B. singleSRC / Bild-Element im Twig-Template) eingebunden wird,
   kann dieser Gradient entfernt bzw. als Fallback belassen werden. */
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(transparent, rgba(18, 23, 20, .45));
  pointer-events: none;
  background: rgba(0,0,0,0.3);
  height: 100%;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: clamp(5rem, 9vw, 9rem) 0 5rem;
}

.hero .eyebrow { color: #f1dfc7; }
.hero .lead { color: rgba(255, 255, 255, .82); max-width: 610px; margin-top: 1.5rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

.hero-meta {
  margin-top: 3.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: .85rem 1.8rem;
  font-size: .82rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
}

/* ==========================================================================
   6. Allgemeine Section-Abstände
   ========================================================================== */
section { padding: clamp(5rem, 8vw, 8rem) 0; }

/* ==========================================================================
   7. "Die Idee" (Intro)
   Passend zu: templates/content_element/ce_intro.html.twig
   ========================================================================== */
.intro-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
}

.story-copy {
  display: grid;
  gap: 1.25rem;
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 680px;
}

.story-copy strong { color: var(--ink); }

/* Bild-Platzhalter: in Contao durch echtes <img> (Contao Insert Tag /
   figure.html.twig) ersetzen, ::before-Hinweistext dann entfernen. */
.image-card {
  min-height: 430px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  background:
    linear-gradient(180deg, transparent, rgba(21, 27, 23, .48)),
    linear-gradient(145deg, #9f916f, #4e634f 55%, #28382e);
}

.image-card::before {
  content: "HIER EIGENES CRUMSTADT-FOTO EINSETZEN";
  position: absolute;
  inset: auto 22px 22px;
  color: white;
  font-size: .76rem;
  letter-spacing: .14em;
  font-weight: 900;
}

/* ==========================================================================
   8. Wiederkehrender Section-Kopf (Eyebrow + H2 + Lead nebeneinander)
   ========================================================================== */
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.7rem;
}

.section-head .lead { max-width: 470px; }

/* ==========================================================================
   9. "Memories" Produktkarten
   Passend zu: templates/content_element/ce_memories.html.twig
   ========================================================================== */
.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.product {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: .25s ease;
}

.product:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

/* Platzhalter-Bildfläche; in Contao im Loop durch Produktbild ersetzen */
.product-image {
  aspect-ratio: 4/5;
  display: flex;
  align-items: flex-end;
  padding: 0;
  background:
    linear-gradient(180deg, transparent 55%, rgba(31, 36, 32, .45)),
    linear-gradient(145deg, #ccb999, #74806c 58%, #3a453d);
  color: white;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.product-body { padding: 1.4rem; }
.product-body p { margin-top: .55rem; color: var(--muted); }

.product-meta {
  margin-top: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 800;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--accent);
  font-weight: 900;
}

/* ==========================================================================
   10. "Shirts" Zwei-Spalten-Panel
   Passend zu: templates/content_element/ce_shirts.html.twig
   ========================================================================== */
.shirts { background: var(--forest); color: white; }

.shirts-grid {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  min-height: 620px;
  border-radius: 32px;
  overflow: hidden;
  background: #27362d;
}

.shirt-photo {
  position: relative;
  min-height: 520px;
  background:
    linear-gradient(180deg, transparent, rgba(21, 27, 23, .35)),
    linear-gradient(135deg, #cdbf9d 0 28%, #778166 28% 54%, #47584c 54%);
}
.shirt-photo video {
	width: 100%;
	height: auto;
}

/*
.shirt-photo::after {
  content: "FOTO: PERSON MIT SHIRT IN CRUMSTADT";
  position: absolute;
  left: 24px;
  bottom: 24px;
  font-size: .74rem;
  letter-spacing: .13em;
  font-weight: 900;
}
*/

.shirt-copy {
  padding: clamp(2.4rem, 6vw, 5.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
}

.shirt-copy .lead { color: rgba(255, 255, 255, .72); }

.edition {
  display: inline-flex;
  align-self: flex-start;
  padding: .45rem .72rem;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 999px;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 900;
}

/* ==========================================================================
   11. Instagram-Kachelraster
   Passend zu: templates/content_element/ce_instagram.html.twig
   ========================================================================== */
.instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
}

.insta-tile {
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background:
    linear-gradient(180deg, transparent, rgba(31, 36, 32, .34)),
    linear-gradient(135deg, #d3c5aa, #718173 65%, #3b483f);
}

.insta-tile:nth-child(2n) { background: linear-gradient(135deg, #a59676, #506053 62%, #2c362f); }
.insta-tile:nth-child(3n) { background: linear-gradient(135deg, #cbb792, #9a7e5c 58%, #485647); }

.insta-tile span {
  position: absolute;
  inset: auto 12px 10px;
  color: white;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* ==========================================================================
   12. "Mitmachen" Community-Bereich mit Formular
   Passend zu: templates/content_element/ce_community_form.html.twig
   ========================================================================== */
.community { background: var(--sand); }

.community-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
}

.form-card {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.4rem, 4vw, 2.5rem);
}

.form-grid { display: grid; gap: 1rem; }

label {
  display: grid;
  gap: .38rem;
  font-size: .86rem;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  padding: .9rem 1rem;
  color: var(--ink);
}

textarea { min-height: 145px; resize: vertical; }

.check {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  font-size: .82rem;
  color: var(--muted);
}

.check input { width: auto; margin-top: .25rem; }

/* Hinweis: Contao-Formulargenerator rendert Felder standardmäßig mit
   eigenen Wrapper-Klassen (widget-text, widget-checkbox etc.). Diese
   Regeln zusätzlich auf die Contao-Klassen mappen oder die Contao-
   Formular-Templates (form_row, form_widget) im Template Studio
   anpassen, damit das Layout hält. */

/* ==========================================================================
   13. "Mehr Heimat" Ausblick-Karten
   Passend zu: templates/content_element/ce_future.html.twig
   ========================================================================== */
.future-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.future-card {
  min-height: 190px;
  padding: 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.future-card span {
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 900;
}

/* ==========================================================================
   14. Closing-Panel
   Passend zu: templates/content_element/ce_closing.html.twig
   ========================================================================== */
.closing { padding: 0; background: var(--bg); }

.closing-panel {
  min-height: 560px;
  display: flex;
  align-items: center;
  text-align: center;
  color: white;
  background:
    linear-gradient(rgba(27, 34, 29, .56), rgba(27, 34, 29, .68)),
    linear-gradient(135deg, #755f45, #8b876d 36%, #3d5141 67%, #26362d);
}

.closing-inner {
  width: min(calc(100% - 36px), 920px);
  margin: auto;
  display: grid;
  justify-items: center;
  gap: 1.4rem;
}

.closing h2 { max-width: 14ch; }
.closing .lead { color: rgba(255, 255, 255, .78); }

/* ==========================================================================
   15. Footer
   Passend zu: templates/layout/crumstadt_layout.html.twig
   ========================================================================== */
footer {
  background: #191d1a;
  color: rgba(255, 255, 255, .78);
  padding: 2.4rem 0;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
  font-size: .88rem;
}

/* ==========================================================================
   16. Hinweis-Box (Platzhalter-Texte, z.B. Preise)
   ========================================================================== */
.note {
  background: #efe8d9;
  border: 1px dashed #b7a98d;
  border-radius: 16px;
  padding: 1rem 1.15rem;
  font-size: .86rem;
  color: #62594b;
  margin-top: 1.2rem;
}

/* ==========================================================================
   17. Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .nav-links { display: none; }

  .menu-toggle {
    display: inline-flex;
    border: 0;
    background: transparent;
    font-size: 1.5rem;
  }

  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 74px;
    left: 18px;
    right: 18px;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    flex-direction: column;
    align-items: stretch;
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .intro-grid,
  .shirts-grid,
  .community-grid { grid-template-columns: 1fr; }

  .products { grid-template-columns: 1fr 1fr; }
  .future-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .hero { min-height: 80vh; }

  .products,
  .future-grid { grid-template-columns: 1fr; }

  .section-head { align-items: flex-start; flex-direction: column; }

  .instagram-grid { grid-template-columns: 1fr 1fr; }

  h1 { font-size: clamp(3rem, 17vw, 5rem); }

  .hero-actions .btn { width: 100%; }
}





#container {
	padding-top: 80px;
}

.image-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}







