/* ===========================
   Grundlayout & Reset
   =========================== */
/*hier*/
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #222;
  background: #fff;
}

/* ===========================
   Farben & Variablen
   =========================== */

:root {
  --accent: #f5a623;        /* warmes Orange */
  --accent-light: #ffe9c7;  /* helles Creme/Orange */
  --accent-dark: #d98200;   /* kräftiges Orange */
  --gray-light: #f5f5f5;
  --gray-mid: #ddd;
  --max-width: 1200px;
}

/* ===========================
   Barrierefreiheit
   =========================== */

.sr-only {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* ===========================
   Typografie
   =========================== */

h1, h2, h3 {
  line-height: 1.3;
  margin-top: 0;
}

h1 {
  font-size: 2.2rem;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.3rem;
}

/* ===========================
   Layout-Helfer
   =========================== */

.container,
main,
.dks-page,
footer,
section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem;
}

.grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===========================
   Header
   =========================== */

header {
  background: white;
  border-bottom: 4px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 100;
  padding-bottom: 0;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-dark);
}

.contact a {
  margin-left: 1rem;
  color: var(--accent-dark);
  text-decoration: none;
}

nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0 0 1rem;
}

nav a {
  text-decoration: none;
  color: #222;
  font-weight: 500;
}

nav a:hover,
nav a:focus-visible {
  color: var(--accent-dark);
}


/* ===========================
   Buttons
   =========================== */

.btn {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 0.7rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

.btn:hover,
.btn:focus-visible {
  background: var(--accent-dark);
}

.btn-secondary {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent-dark);
  padding: 0.7rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--accent);
  color: white;
}

/* ===========================
   dks_topic-Bereich
   =========================== */

.dks_topic {
  display: grid;
  gap: 2rem;
  padding: 2rem 0;
  background: var(--gray-light);
  border-radius: 10px;
}
.dks_topic:first-child {
  padding:30px;
}

.dks_topic .btn {
  background: #e74c3c;
  color: white;
  padding: 0.7rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

.dks_topic .btn:hover,
.dks_topic .btn:focus-visible {
  background: #c0392b;
  box-shadow: 0 4px 4px rgba(0,0,0,0.08);
}

.dks_topic .btn-secondary {
  background: #ffd6d2;
  color: #c0392b;
}

.dks_topic .btn-secondary:hover,
.dks_topic .btn-secondary:focus-visible {
  background: #e74c3c;
  color: white;
} 

.dks_topic:first-child a {
  margin: 0 30px;
}

.dks_topic img {
  width: 100%;
  border-radius: 10px;
  display: block;
}

@media (min-width: 768px) {
  .dks_topic {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}
/* ===========================
    Main Inhalt
   =========================== */
main {
    min-width: 320px;
    max-width: 1200px;
    margin: 0 auto;
}
/* ===========================
    Karten / Leistungen
   =========================== */

.cards {
  display: grid;
  gap: 1.5rem;
  padding: 1.5rem 0;
}

@media (min-width: 768px) {
  .cards {
    grid-template-columns: repeat(4, 1fr);
  }
}

.cards article {
  background: white;
  border: 1px solid var(--gray-mid);
  border-radius: 10px;
  padding: 1.2rem;
  transition: box-shadow 0.2s ease;

  /* NEU: Flex-Layout für gleiche Höhe */
  display: flex;
  flex-direction: column;
  height: 100%;
}

.cards article:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* NEU: Textblock füllt den Platz */
.cards article p {
  flex-grow: 1;
  margin-bottom: 1rem;
}

/* NEU: Link immer unten */
.cards article a {
  margin-top: auto;
  display: inline-block;
  font-weight: 600;
  color: var(--accent-dark);
  text-decoration: none;
}

.cards article a:hover,
.cards article a:focus-visible {
  text-decoration: underline;
}


/* ===========================
   Galerie
   =========================== */

.gallery {
  display: grid;
  gap: 1rem;
}

.gallery img {
  width: 100%;
  border-radius: 10px;
}

/* ===========================
    Kontakt und Öffnungszeiten
   =========================== */
#dks-kontakt {

    background: var(--gray-light);
    padding: 30px;
    border-radius: 10px;
}
.dks-kontakt-box {
    display: flex;
    justify-content: space-between;

    width: 100%;
}
.dks-kontakt-box div{width: 45%;}
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

th, td {
  padding: 0.6rem;
  border-bottom: 1px solid var(--gray-mid);
}

th {
  text-align: left;
  font-weight: 600;
}

/* ===========================
   Footer
   =========================== */

footer {
  background: var(--accent-dark);
  color: white;
  padding: 2rem 1.5rem;
  margin-top: 3rem;
  border-radius: 10px 10px 0 0;
}

footer nav a {
  color: white;
  margin-right: 1rem;
  text-decoration: none;
}

footer nav a:hover {
  text-decoration: underline;
}


@media (max-width: 766px) {
  * {
    color:red;
  }
}