/* Moderne Farbpalette */
:root {
  --primary-green: #2d7a3e;
  --light-green: #4caf50;
  --accent-green: #81c784;
  --bright-lime: #cddc39;
  --warm-orange: #ff9800;
  --soft-purple: #9c27b0;
  --deep-blue: #1976d2;
  --bg-light: #f1f8f4;
  --bg-white: #ffffff;
  --text-dark: #1a1a1a;
  --text-gray: #555555;
  --shadow: rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html { background:linear-gradient(180deg, #fbf9ea, #7dd8ad); }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.7;
  color: var(--text-dark);
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
  background-attachment: fixed;
  padding: 20px;
  max-width: 70rem;
  margin: 0 auto;
}

/* Header Styling */
h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-green), var(--light-green), var(--bright-lime));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  text-align: center;
  padding: 1rem 0;
  text-shadow: 2px 2px 4px var(--shadow);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--primary-green);
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--accent-green);
  position: relative;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--warm-orange), var(--bright-lime));
}

h2:first-of-type { border:none; }
h2:first-of-type::after { background:none; }

h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  color: var(--light-green);
  margin-top: 2rem;
  margin-bottom: 0.8rem;
}

/* Container */
main, article, section {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-white);
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 20px;
  box-shadow: 0 10px 40px var(--shadow);
  margin-bottom: 2rem;
}

/* Paragraph Styling */
p {
  margin-bottom: 1.2rem;
  font-size: clamp(1rem, 2vw, 1.1rem);
  color: var(--text-gray);
  text-align: justify;
}

p:first-of-type {
  font-size: clamp(1.1rem, 2.2vw, 1.2rem);
  color: var(--text-dark);
  font-weight: 500;
}

/* Strong & Em */
strong, b {
  color: var(--primary-green);
  font-weight: 700;
}

em, i {
  color: var(--soft-purple);
  font-style: italic;
}

/* Links */
a {
  color: var(--deep-blue);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: all 0.3s ease;
}

a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--deep-blue), var(--light-green));
  transition: width 0.3s ease;
}

a:hover {
  color: var(--light-green);
}

a:hover::after {
  width: 100%;
}

/* Listen */
ul, ol {
  margin: 1.5rem 0 1.5rem 2rem;
}

li {
  margin-bottom: 0.8rem;
  color: var(--text-gray);
  padding-left: 0.5rem;
}

li::marker {
  color: var(--accent-green);
  font-weight: bold;
}

/* Blockquotes */
blockquote {
  background: linear-gradient(135deg, rgba(129, 199, 132, 0.1), rgba(205, 220, 57, 0.1));
  border-left: 5px solid var(--light-green);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 10px;
  font-style: italic;
  color: var(--text-dark);
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.1);
}

/* Tabellen */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 2rem 0;
  background: var(--bg-white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px var(--shadow);
}

thead {
  background: linear-gradient(135deg, var(--primary-green), var(--light-green));
  color: white;
}

th {
  padding: 1.2rem;
  text-align: left;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

td {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid rgba(129, 199, 132, 0.2);
  color: var(--text-gray);
}

tr:last-child td {
  border-bottom: none;
}

tbody tr {
  transition: all 0.3s ease;
}

tbody tr:hover {
  background: linear-gradient(90deg, rgba(205, 220, 57, 0.08), rgba(129, 199, 132, 0.08));
  transform: scale(1.01);
}

tbody tr:nth-child(even) {
  background: rgba(241, 248, 244, 0.5);
}

/* Code */
code, pre {
  background: rgba(45, 122, 62, 0.05);
  border: 1px solid var(--accent-green);
  border-radius: 8px;
  padding: 0.3rem 0.6rem;
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  color: var(--primary-green);
}

pre {
  padding: 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

/* Horizontale Linie */
hr {
  border: none;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-green), var(--bright-lime), var(--warm-orange));
  margin: 3rem 0;
  border-radius: 5px;
}

.right { display:flex; flex-direction: column; float:right; margin:0 0 1rem 1.3rem; }
dt { font-weight:700; font-size:1.1rem; }
em.red { font-weight:700; color:red; }

/* Buttons (falls vorhanden) */
button, .button {
  background: linear-gradient(135deg, var(--light-green), var(--accent-green));
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

button:hover, .button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
  background: linear-gradient(135deg, var(--accent-green), var(--bright-lime));
}

.cta-box {
    max-width: 480px;
    margin: 2rem auto;
    padding: 2rem 2.5rem 2.5rem;
    background: #f7f9fa;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #24292f;
}
.cta-box h3 {
    margin-top: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
}

.cta-box img { width:100%; }

.cta-box label {
    display: block;
    margin: 1rem 0 .35rem;
    font-weight: 500;
    font-size: .95rem;
}
.cta-box input[type=text],
.cta-box input[type=email],
.cta-box select {
    width: 100%;
    padding: .55rem .7rem;
    font-size: 1rem;
    border: 1px solid #bbb;
    border-radius: 4px;
    background: #fff;
    transition: border .2s;
}
.cta-box input:focus,
.cta-box select:focus {
    border-color: #2d7a2d;
    outline: none;
    box-shadow: 0 0 0 3px rgba(45,122,45,.20);
}
.cta-box button {
    margin-top: 1.5rem;
    width: 100%;
    padding: .65rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    background: #2d7a2d;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background .2s;
}
.cta-box button:hover {
    background: #236123;
}
.cta-box .msg {
    margin-bottom: 1rem;
    padding: .75rem 1rem;
    border-radius: 4px;
    font-size: .95rem;
}
.cta-box .msg.ok {
    background: #d1f0d1;
    color: #144214;
    border: 1px solid #b4e0b4;
}
.cta-box .msg.err {
    background: #ffeaea;
    color: #8c1c1c;
    border: 1px solid #f5c2c2;
}

#socialmedia ul {
	list-style: none;
	color: var(--color-slate-900);
	background:var(--color-slate-50); 
	padding:0.6rem 0.25rem;
	border-radius:var(--radius);
}

#socialmedia li {
	list-style: none;
	margin:0 0.3rem 0.9rem 0.3rem;
	font-size:1.05rem;
	float:left;
}

#socialmedia li:last-child {
	margin-bottom:0rem;
}

#socialmedia a, #socialmedia a:link {
	display:flex;
	align-items: center;
	padding:0.2rem;
	font-weight:700;
}

#socialmedia a:hover {
	color: var(--color-white);
	background: var(--gradient-red);
	transform: translateY(-2px);
}

#socialmedia img {
	margin: 0 0.4rem 0 0;
}

#socialmedia a:hover img {
	filter:invert(70%);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }
  
  main, article, section {
    padding: 1.5rem;
    border-radius: 15px;
  }
  
  table {
    font-size: 0.9rem;
  }
  
  th, td {
    padding: 0.8rem;
  }
.right { display:block; float:none; margin:0 0 0.8rem 0;}
img.right, iframe { width:100%; }

}

/* Spezielle Akzente */
.highlight {
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.2), rgba(205, 220, 57, 0.2));
  padding: 0.2rem 0.5rem;
  border-radius: 5px;
  font-weight: 600;
}

/* Scroll-Animation vorbereiten */
@media (prefers-reduced-motion: no-preference) {
  * {
    scroll-behavior: smooth;
  }
}