﻿/* ================================================================== */
/* Pfeifenmachermesse Worth - Haupt-CSS-Datei                         */
/* Enthält alle Layout-, Farb- und Komponentenstile                     */
/* ================================================================== */

/* ---------- Root-Variablen ---------- */
:root {
  /*--bg: #966F33;*/              /* Seitenhintergrund */
  /*--bg: #1E2A22;*/              /* Seitenhintergrund */
  --bg: #7f4f29;              /* Seitenhintergrund */
  /*--card: #3D1C02;*/            /* Karten/Abschnitte Hintergrund */
  --card: #b09a7f;            /* Karten/Abschnitte Hintergrund */
  --accent: #b08968;          /* Akzentfarbe für Buttons, Logos */
  --muted: #a0a6b3;           /* Gedämpfte Textfarbe */
  --text: #f4f4f4;            /* Haupttextfarbe */
  --radius: 12px;             /* Globale Border-Radius */
  --max-w: 1100px;            /* Maximalbreite des Containers */
  --gap: 1rem;                /* Standardabstand für Grid/Flex */
  --container-pad: 1rem;      /* Padding für Container */
}

/* ---------- Basis ---------- */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding: 2rem var(--container-pad);
}
/* Hintergrundbild für die gesamte Seite */
body {
  /*background: url('images/pfeifenholz.jpg') no-repeat center center fixed;
*/  background-size: cover;
  color: #F4F4F4;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 2rem;
}

/* ---------- Container ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-inline: var(--container-pad);
}

/* ========================== Galerie ========================== */
.news-grid, .event-grid {
	display:grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    /*grid-template-columns: repeat(2, 1fr);*/
    gap: 1rem;
}

.event-grid a {
	text-decoration:none;
}

.news-grid article, .event-grid article {
    background: #fff;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.07);
    border-style: solid;
	border-color: grey;
	margin: 1rem;

}

/* Event Datum */
.event-date {
    font-weight: bold;
    color: #9A7D44;
    margin-bottom: 0.5rem;
    margin-top: 0.1rem;
}


/* ========================== Aussteller ========================== */
.Aussteller-grid {
	display:grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    /*grid-template-columns: repeat(2, 1fr);*/
    gap: 1rem;
}

.Aussteller-grid article {
    background: #fff;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.07);
    border-style: solid;
	border-color: grey;
	margin: 1rem;
	text-align:center;

}


.Ausstellername {
    font-weight: bold;
    color: #9A7D44;
    margin-top: 0.1rem;
    margin-bottom: 0.5rem;
}

#Aussteller img{
	max-width:150px;
}


/* ---------- Header & Navigation ---------- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.2rem;
}
.logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #8b5e3c);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(176,137,104,0.3);
}
nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav-links { display: none; gap: 1rem; }
.nav-links a {
  color: var(--text);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-weight: 600;
}
.nav-links a:hover { background: rgba(255,255,255,0.05); }


/* Anmeldebutton*/
.cta {
  background: var(--accent);
  color: White;
  text-decoration: none;
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  font-weight: 700;
}
.menu-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  color: var(--text);
}

/* ---------- Hero & Abschnitt ---------- */
.hero {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2rem;
  align-items: center;
}
h1 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); margin: 0; }
p.lead { color: var(--muted); max-width: 60ch; }
.card {
  min-height: 250px;
  background: var(--card);
  padding: 1rem;
  margin-bottom: 1rem;
  /*margin: 1rem;
*/
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
 }
.cardimage {
	min-height: 950px;
    background-image: url("images/Messegelaende.jpeg"); /* Pfad zum Bild */
    background-size: cover;       /* Bild füllt die Karte aus */
    background-position: center;  /* zentriert das Motiv */
    background-repeat: no-repeat; /* verhindert Wiederholung */
    
    border-radius: 12px;
    padding: 20px;
    color: white;                 /* Text sichtbar halten */
    position: relative;
    overflow: hidden;
}
.cardimage::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.3); /* hier ist die Opacity */
    z-index: 0;
}

.cardimage > * {
    position: relative;
    z-index: 1; /* Text wieder oben */
}

.cardimage a:link,
.cardimage a:visited,
.cardimage a:active {
    color: red;
    text-decoration:none;
    text-shadow: 0 0 4px white;
}


.cardimage a:hover {
    color: darkred;    /* optional */
    text-shadow: 0 0 4px white;
}

/* Kleine Vorschau links vom Text */
.card-inline {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.85rem;
}
.card-thumb {
  /*width: 200px;*/
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  border-style: solid;
  border-color: white;
  flex-shrink: 0;
}

/* Gesamtcontainer */
.card-inline2 {
    float: right;
    text-align: center;
    width: 200px; 
    margin: 10px;
    font-family: "Georgia", "Times New Roman", serif; /* edle Serifenschrift */
}

/* Text über dem Bild */
.card-text-top {
    font-size: 16px;
    font-weight: bold;
    font-style:italic;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

/* Wrapper für Overlay-Effekt */
.image-wrapper {
    position: relative;
    display: inline-block;
}

.card-thumb {
    width: 100%;
    display: block;
    border-radius: 6px;
}

/* Bildunterschrift mit halbtransparentem Balken */
.caption {
    position: absolute;
    bottom: 8px;
    right: 10px;
    color: white;
    font-size: 15px;
    font-weight: bold;
    font-family: "Georgia", "Times New Roman", serif;
    text-shadow: 0 0 4px black;  /* für Lesbarkeit */
    letter-spacing: 0.5px;
}


.grid { display: grid; gap: 1rem; }

/* ---------- Footer ---------- */
footer {
  margin-top: 3rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1rem;
  font-size: 0.9rem;
}
footer a {
  color: var(--muted);
  text-decoration: none;
  margin-right: 1rem;
}
footer a:hover { color: var(--accent); text-decoration: underline; }

/* ---------- Responsive Breakpoints ---------- */
@media(min-width: 640px) {
  .nav-links { display: flex; }
  .menu-btn { display: none; }
  .hero { grid-template-columns: 1fr 420px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media(min-width: 1024px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Mobile Navigation ---------- */
.mobile-nav { display: none; margin-top: 0.75rem; }
nav.open .mobile-nav { display: block; }
nav.open .nav-links { display: none; flex-direction: column; }

/* ---------- Hilfsklassen ---------- */
.muted { color: var(--muted); }
.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  font-size: 0.85rem;
}



/*-----------------*/
/* main navigation */
.main-nav {
  /*background: #3a2616;*/ /* dunkles Pfeifenholz */
  color: #f5e1c8;
  padding: 0.5rem 1rem;
  font-family: "Segoe UI", sans-serif;
  position: relative;
  /*box-shadow: 0 2px 5px rgba(0,0,0,0.3);*/
}

/* Header: Logo + Hamburger */
.nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
font-weight: bold;
  font-size: 1.3rem;
  color: #f5e1c8;
  text-decoration: none;
}

.nav-toggle {
  font-size: 1.8rem;
  background: none;
  border: none;
  color: #f5e1c8;
  cursor: pointer;
  display: none; /* nur mobile */
}

/* Desktop Links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  color: #f5e1c8;
  text-decoration: none;
  padding: 0.5rem;
  display: block;
  transition: background 0.3s;
}

.nav-links a:hover {
  background: #5b3e21;
  border-radius: 4px;
}

/* Untermenü */
.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #5b3e21;
  list-style: none;
  min-width: 180px;
  border-radius: 4px;
}

.sub-menu li a {
  padding: 0.5rem 1rem;
}

/* Desktop Hover Dropdown */
.nav-links li:hover > .sub-menu {
  display: block;
}

/* ===================== MOBILE ===================== */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    position: fixed;
    top: 60px;
    left: -260px; /* versteckt */
    width: 250px;
    height: 100%;
    background: #3a2616;
    padding-top: 1rem;
    gap: 0;
    transition: left 0.3s ease;
    z-index: 999;
    overflow-y: auto;
  }

  .nav-links.show {
    left: 0;
  }

  .nav-links li {
    width: 100%;
  }

  .sub-menu {
    position: static;
    display: none;
    background: #5b3e21;
  }

  .sub-menu li a {
    padding-left: 2rem;
  }
}



.share-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.share-label {
    color: #fff;
    font-size: 0.9rem;
    opacity: 0.85;
}

.share-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.share-btn svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

.share-btn:hover {
    background: rgba(255,255,255,0.3);
    box-shadow: 0 0 10px rgba(255,255,255,0.4);
}
